Skip to content

Commit b709c3d

Browse files
WIP
1 parent 54a8722 commit b709c3d

File tree

3 files changed

+8
-11
lines changed

3 files changed

+8
-11
lines changed

packages/firestore/exp/test/bootstrap.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@
2424

2525
// 'context()' definition requires additional dependency on webpack-env package.
2626
// eslint-disable-next-line @typescript-eslint/no-explicit-any
27-
const testsContext = (require as any).context(
27+
const integrationTestContext = (require as any).context(
2828
'../../test/integration/api',
2929
true,
3030
/^.*\.test\.ts$/
3131
);
32-
const browserTests = testsContext.keys();
33-
browserTests.forEach(testsContext);
32+
const integrationTests = integrationTestContext.keys();
33+
integrationTests.forEach(integrationTestContext);

packages/firestore/test/integration/util/firebase_export.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,7 @@ import { FieldValue } from '../../../src/compat/field_value';
3535
import { FirebaseApp } from '@firebase/app-types';
3636
import {
3737
Firestore,
38-
IndexedDbPersistenceProvider,
39-
MemoryPersistenceProvider
38+
IndexedDbPersistenceProvider
4039
} from '../../../src/api/database';
4140
import { Provider, ComponentContainer } from '@firebase/component';
4241

@@ -77,9 +76,7 @@ export function newTestFirestore(
7776
? new Firestore(
7877
app,
7978
new Provider('auth-internal', new ComponentContainer('default')),
80-
process.env.USE_MOCK_PERSISTENCE === 'Yes'
81-
? new IndexedDbPersistenceProvider()
82-
: new MemoryPersistenceProvider()
79+
new IndexedDbPersistenceProvider()
8380
)
8481
: // eslint-disable-next-line @typescript-eslint/no-explicit-any
8582
(firebase as any).firestore(app);

packages/firestore/test/unit/bootstrap.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,12 @@
2424

2525
// 'context()' definition requires additional dependency on webpack-env package.
2626
// eslint-disable-next-line @typescript-eslint/no-explicit-any
27-
const testsContext = (require as any).context(
27+
const unitTestsContext = (require as any).context(
2828
'.',
2929
true,
3030
/^((?!node).)*\.test$/
3131
);
32-
const browserTests = testsContext
32+
const unitTests = unitTestsContext
3333
.keys()
3434
.filter((file: string) => !file.match(/([\/.])node([\/.])/));
35-
browserTests.forEach(testsContext);
35+
unitTests.forEach(unitTestsContext);

0 commit comments

Comments
 (0)