Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 868b98b

Browse files
committedSep 27, 2016
set jasmine exit
1 parent cee0e52 commit 868b98b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed
 

‎scripts/run-packages-spec.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,13 @@ 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 =
2022
glob.sync('packages/**/*.spec.ts')
2123
.map(p => path.relative(projectBaseDir, p))
2224
.filter(p => !/blueprints/.test(p));
2325

24-
jasmine.execute(allTests);
26+
jasmine.execute(allTests);

0 commit comments

Comments
 (0)
Please sign in to comment.