Skip to content

Commit

Permalink
Merge pull request #111 from Coaxial/fix/shared-state-warning
Browse files Browse the repository at this point in the history
Add watch task warning, close #110
  • Loading branch information
Jameskmonger committed Mar 30, 2016
2 parents efc4880 + e349184 commit f2cac8b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@ gulp.task('default', () => {
});
```

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


## API

Expand Down

0 comments on commit f2cac8b

Please sign in to comment.