Skip to content

Commit 739cbca

Browse files
committed
Fix database tests
1 parent 061102b commit 739cbca

File tree

1 file changed

+4
-3
lines changed
  • packages/rules-unit-testing/src/api

1 file changed

+4
-3
lines changed

packages/rules-unit-testing/src/api/index.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@
1616
*/
1717

1818
import firebase from 'firebase';
19+
import 'firebase/database';
20+
import 'firebase/firestore';
21+
import 'firebase/storage';
22+
1923
import type { app } from 'firebase-admin';
2024
import { _FirebaseApp } from '@firebase/app-types/private';
2125
import { FirebaseAuthInternal } from '@firebase/auth-interop-types';
@@ -491,9 +495,6 @@ function initializeApp(
491495
);
492496
}
493497
if (databaseName) {
494-
const { hostname, port } = parseHost(getDatabaseHost());
495-
app.database().useEmulator(hostname, port);
496-
497498
// Toggle network connectivity to force a reauthentication attempt.
498499
// This mitigates a minor race condition where the client can send the
499500
// first database request before authenticating.

0 commit comments

Comments
 (0)