Skip to content

Commit a3e2a05

Browse files
longlhorwaldron
authored andcommitted
feat: set exitCode to 1 when a test fails
1 parent 129a5af commit a3e2a05

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

bin/run.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,9 @@ const results = zip(pool, tests).pipe(
178178
);
179179

180180
const emitter = new ResultsEmitter(results);
181+
emitter.on('fail', function () {
182+
process.exitCode = 1;
183+
});
181184
reporter(emitter, reporterOpts);
182185

183186
function printVersion() {

0 commit comments

Comments
 (0)