Skip to content

Commit

Permalink
Merge pull request #77 from neoziro/test-suite-not-exiting
Browse files Browse the repository at this point in the history
Listen error event to exit with proper error code.
  • Loading branch information
sindresorhus committed Jan 24, 2015
2 parents 288cc7f + 927826a commit a6f8937
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,12 @@ If your test suite is not exiting it might be because you still have a lingering
gulp.task('default', function () {
return gulp.src('test.js')
.pipe(mocha())
.once('error', function () {
process.exit(1);
})
.once('end', function () {
process.exit();
});
process.exit();
});
});
```

Expand Down

0 comments on commit a6f8937

Please sign in to comment.