Skip to content

Commit

Permalink
feat: set exitCode to 1 when a test fails
Browse files Browse the repository at this point in the history
  • Loading branch information
longlho authored and rwaldron committed Sep 3, 2020
1 parent 129a5af commit a3e2a05
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions bin/run.js
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,9 @@ const results = zip(pool, tests).pipe(
);

const emitter = new ResultsEmitter(results);
emitter.on('fail', function () {
process.exitCode = 1;
});
reporter(emitter, reporterOpts);

function printVersion() {
Expand Down

0 comments on commit a3e2a05

Please sign in to comment.