Skip to content

Commit 8f4c898

Browse files
committed
fix(ci): correctly report packages spec failures
1 parent a9f9976 commit 8f4c898

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"build": "node ./scripts/publish/build.js",
1313
"build:patch": "node ./scripts/patch.js",
1414
"build:packages": "for PKG in packages/*; do echo Building $PKG...; tsc -p $PKG; done",
15-
"test": "npm run test:packages && npm run test:cli",
15+
"test": "npm-run-all -c test:packages test:cli",
1616
"e2e": "npm run test:e2e",
1717
"e2e:nightly": "node tests/e2e_runner.js --nightly",
1818
"mobile_test": "mocha tests/e2e/e2e_workflow.spec.js",

scripts/run-packages-spec.js

+2
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ const projectBaseDir = path.join(__dirname, '../packages');
1414
const jasmine = new Jasmine({ projectBaseDir: projectBaseDir });
1515
jasmine.loadConfig({});
1616
jasmine.addReporter(new JasmineSpecReporter());
17+
// Manually set exit code (needed with custom reporters)
18+
jasmine.onComplete((success) => process.exitCode = !success);
1719

1820
// Run the tests.
1921
const allTests =

0 commit comments

Comments
 (0)