Skip to content

Commit f9cfdac

Browse files
committed
Fix types for testEnv.emulators.
1 parent 8a6b844 commit f9cfdac

File tree

1 file changed

+5
-3
lines changed
  • packages/rules-unit-testing/src/public_types

1 file changed

+5
-3
lines changed

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

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -153,9 +153,11 @@ export interface RulesTestEnvironment {
153153
/**
154154
* A readonly copy of the emulator config specified or discovered at test environment creation.
155155
*/
156-
readonly emulators: Readonly<
157-
Record<'database' | 'firestore' | 'storage', Readonly<EmulatorConfig>>
158-
>;
156+
readonly emulators: {
157+
database?: { host: string; port: number };
158+
firestore?: { host: string; port: number };
159+
storage?: { host: string; port: number };
160+
};
159161

160162
/**
161163
* Create a {@code RulesTestContext} which behaves like an authenticated Firebase Auth user.

0 commit comments

Comments
 (0)