Skip to content

Commit f2cac8b

Browse files
committed
Merge pull request #111 from Coaxial/fix/shared-state-warning
Add watch task warning, close #110
2 parents efc4880 + e349184 commit f2cac8b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Diff for: readme.md

+5
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,11 @@ gulp.task('default', () => {
2727
});
2828
```
2929

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

3136
## API
3237

0 commit comments

Comments
 (0)