mocha-watch

0.1.0 • Public • Published

mocha-watch

better watch for mocha.

Automatically detects all dependencies of your tests and reruns them on change.

Uses require.cache.

Install

npm install -g mocha-watch

Usage

mocha-watch # drop-in replacement for mocha --watch

Exclude a required file from watching

after(() =>
  delete require.cache["full/path/to/file"]
)

## License
Copyright (c) 2017 Paul Pflugradt
Licensed under the MIT license.

Readme

Keywords

Package Sidebar

Install

npm i mocha-watch

Weekly Downloads

17

Version

0.1.0

License

MIT

Last publish

Collaborators

  • paulpflug