Skip to content

Commit 113883e

Browse files
Revert some changes
1 parent 8d2ec19 commit 113883e

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

packages/firestore/exp/test/bootstrap.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
* limitations under the License.
1616
*/
1717

18+
import { registerFirestore } from '../register';
19+
registerFirestore();
1820
/**
1921
* This will include all of the test files and compile them as needed
2022
*
@@ -24,10 +26,10 @@
2426

2527
// 'context()' definition requires additional dependency on webpack-env package.
2628
// eslint-disable-next-line @typescript-eslint/no-explicit-any
27-
const integrationTestContext = (require as any).context(
29+
const testsContext = (require as any).context(
2830
'../../test/integration/api',
2931
true,
3032
/^.*\.test\.ts$/
3133
);
32-
const integrationTests = integrationTestContext.keys();
33-
integrationTests.forEach(integrationTestContext);
34+
const browserTests = testsContext.keys();
35+
browserTests.forEach(testsContext);

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 unitTestsContext = (require as any).context(
27+
const testsContext = (require as any).context(
2828
'.',
2929
true,
3030
/^((?!node).)*\.test$/
3131
);
32-
const unitTests = unitTestsContext
32+
const browserTests = testsContext
3333
.keys()
3434
.filter((file: string) => !file.match(/([\/.])node([\/.])/));
35-
unitTests.forEach(unitTestsContext);
35+
browserTests.forEach(testsContext);

0 commit comments

Comments
 (0)