Skip to content

Commit 93622b2

Browse files
authored
Firestore: Exclude node tests in the browser. (#213)
1 parent 0a57480 commit 93622b2

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

packages/firestore/test/integration/bootstrap.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,7 @@ import '../../src/platform_browser/browser_init';
2323
* https://github.com/webpack-contrib/karma-webpack#alternative-usage
2424
*/
2525
var testsContext = (require as any).context('.', true, /.test$/);
26-
testsContext.keys().forEach(testsContext);
26+
var browserTests = testsContext
27+
.keys()
28+
.filter(file => file.indexOf('/node/') < 0);
29+
browserTests.forEach(testsContext);

packages/firestore/test/unit/bootstrap.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,7 @@ import '../../src/platform_browser/browser_init';
2323
* https://github.com/webpack-contrib/karma-webpack#alternative-usage
2424
*/
2525
var testsContext = (require as any).context('.', true, /.test$/);
26-
testsContext.keys().forEach(testsContext);
26+
var browserTests = testsContext
27+
.keys()
28+
.filter(file => file.indexOf('/node/') < 0);
29+
browserTests.forEach(testsContext);

0 commit comments

Comments
 (0)