Skip to content

Commit 234d122

Browse files
Merge branch 'master' into mrschmidt/nopromise
2 parents 3cef089 + 90203eb commit 234d122

File tree

2 files changed

+15
-4
lines changed

2 files changed

+15
-4
lines changed

packages/firestore/package.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,16 +24,19 @@
2424
"gendeps:exp": "../../scripts/exp/extract-deps.sh --types ./exp-types/index.d.ts --bundle ./dist/exp/tmp.js --output ./exp/dependencies.json",
2525
"pregendeps:lite": "node scripts/build-bundle.js --input ./lite/index.ts --output ./dist/lite/tmp.js",
2626
"gendeps:lite": "../../scripts/exp/extract-deps.sh --types ./lite-types/index.d.ts --bundle ./dist/lite/tmp.js --output ./lite/dependencies.json",
27-
"test:lite": "node ./scripts/run-tests.js --emulator --platform node_lite --main=lite/index.ts 'lite/test/**/*.test.ts'",
27+
"test:lite": "node ./scripts/run-tests.js --emulator --platform node_lite --main=lite/index.ts 'lite/test/**/*.test.ts'",
28+
"test:lite:prod": "node ./scripts/run-tests.js --platform node_lite --main=lite/index.ts 'lite/test/**/*.test.ts'",
2829
"test:lite:browser": "karma start --single-run --lite",
2930
"test:lite:browser:debug": "karma start --single-run --lite --auto-watch",
3031
"test:exp": "node ./scripts/run-tests.js --emulator --main=exp/index.ts test/integration/api/*.test.ts",
32+
"test:exp:prod": "node ./scripts/run-tests.js --main=exp/index.ts test/integration/api/*.test.ts",
3133
"test:exp:persistence": "node ./scripts/run-tests.js --emulator --persistence --main=exp/index.ts test/integration/api/*.test.ts",
34+
"test:exp:persistence:prod": "node ./scripts/run-tests.js --persistence --main=exp/index.ts test/integration/api/*.test.ts",
3235
"test:exp:browser": "karma start --single-run --exp",
3336
"test:exp:browser:debug": "karma start --single-run --exp --auto-watch",
3437
"test": "run-s lint test:all",
3538
"test:ci": "node ../../scripts/run_tests_in_ci.js",
36-
"test:all": "run-p test:browser test:lite:browser test:exp:browser test:travis test:minified test:exp test:lite",
39+
"test:all": "run-p test:browser test:lite:browser test:exp:browser test:travis test:minified",
3740
"test:browser": "karma start --single-run",
3841
"test:browser:debug": "karma start --browsers=Chrome --auto-watch",
3942
"test:node": "node ./scripts/run-tests.js --main=index.node.ts --emulator 'test/{,!(browser)/**/}*.test.ts'",

scripts/emulator-testing/firestore-test-runner.ts

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,17 @@ function runTest(port: number, projectId: string, withPersistence: boolean) {
3636
// ready in Firestore emulator.
3737
// Use `prod` to allow test runner's env variable overrides to work.
3838
if (withPersistence) {
39-
return spawn('yarn', ['test:node:persistence:prod'], options);
39+
return Promise.all([
40+
spawn('yarn', ['test:node:persistence:prod'], options),
41+
spawn('yarn', ['test:exp:persistence:prod'], options),
42+
spawn('yarn', ['test:lite:prod'], options)
43+
]);
4044
} else {
41-
return spawn('yarn', ['test:node:prod'], options);
45+
return Promise.all([
46+
spawn('yarn', ['test:node:prod'], options),
47+
spawn('yarn', ['test:exp:prod'], options),
48+
spawn('yarn', ['test:lite:prod'], options)
49+
]);
4250
}
4351
}
4452

0 commit comments

Comments
 (0)