Skip to content

Commit

Permalink
Add example of using the exit option (#185)
Browse files Browse the repository at this point in the history
  • Loading branch information
soboko authored and sindresorhus committed Dec 30, 2017
1 parent 3f53145 commit 7bc8d9c
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,16 @@ gulp.task('default', () =>
);
```

Or you might just need to pass the `exit` option:

```js
gulp.task('test', () =>
gulp.src(['test/**/*.js'], {read: false})
.pipe(mocha({reporter: 'list', exit: true}))
.on('error', console.error)
);
```


## License

Expand Down

0 comments on commit 7bc8d9c

Please sign in to comment.