Skip to content

Commit

Permalink
Force failing mocha tests to return a exit code of 1
Browse files Browse the repository at this point in the history
Fixes #651
  • Loading branch information
Tyriar committed May 3, 2017
1 parent 64d3c08 commit 03d26e3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ gulp.task('instrument-test', function () {
gulp.task('mocha', ['instrument-test'], function () {
return gulp.src([`${outDir}/*test.js`, `${outDir}/**/*test.js`], {read: false})
.pipe(mocha())
.once('error', () => process.exit(1))
.pipe(istanbul.writeReports());
});

Expand Down

0 comments on commit 03d26e3

Please sign in to comment.