Skip to content

Commit e349184

Browse files
committed
Add watch task warning, close #110
1 parent 3ca5413 commit e349184

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

readme.md

+5
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,11 @@ gulp.task('default', function () {
2525
});
2626
```
2727

28+
> If you are writing a watch task to run your tests as you modify your `.js` files, be aware that you might run
29+
into issues. This plugin runs your mocha tests within the same process as your watch task and state isn't reset
30+
between runs. If your tests eventually fail within the watch task but pass when run in a standalone task or with
31+
`mocha test`, then you need to use the [`gulp-spawn-mocha`](https://github.com/KenPowers/gulp-spawn-mocha) plugin.
32+
2833

2934
## API
3035

0 commit comments

Comments
 (0)