Skip to content

Commit fc1f1bc

Browse files
Make spec tests easier to debug (#2055)
With this simple change, tests missing the "exclusive" tag will not be translated into JSON. Hence, we can set breakpoints in the spec builder functions.
1 parent 3c3ddb4 commit fc1f1bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/firestore/test/unit/specs/describe_spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,12 +166,12 @@ export function specTest(
166166
? [true, false]
167167
: [false];
168168
for (const usePersistence of persistenceModes) {
169-
const spec = builder();
170169
const runner = getTestRunner(tags, usePersistence);
171170
const timeout = getTestTimeout(tags);
172171
const mode = usePersistence ? '(Persistence)' : '(Memory)';
173172
const fullName = `${mode} ${name}`;
174173
const queuedTest = runner(fullName, async () => {
174+
const spec = builder();
175175
const start = Date.now();
176176
await spec.runAsTest(fullName, tags, usePersistence);
177177
const end = Date.now();

0 commit comments

Comments
 (0)