0.1.0 • Published 7 years ago

mocha-watch v0.1.0

Weekly downloads
27
License
MIT
Repository
github
Last release
7 years ago

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.