Skip to content

Commit

Permalink
set jasmine exit
Browse files Browse the repository at this point in the history
  • Loading branch information
filipesilva committed Sep 27, 2016
1 parent cee0e52 commit 868b98b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scripts/run-packages-spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,13 @@ const projectBaseDir = path.join(__dirname, '../packages');
const jasmine = new Jasmine({ projectBaseDir: projectBaseDir });
jasmine.loadConfig({});
jasmine.addReporter(new JasmineSpecReporter());
// Manually set exit code (needed with custom reporters)
jasmine.onComplete((success) => process.exitCode = !success);

// Run the tests.
const allTests =
glob.sync('packages/**/*.spec.ts')
.map(p => path.relative(projectBaseDir, p))
.filter(p => !/blueprints/.test(p));

jasmine.execute(allTests);
jasmine.execute(allTests);

0 comments on commit 868b98b

Please sign in to comment.