Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/topfunky/demo-mocha-watch-bug

A demo to show a bug in mocha's --watch option
https://github.com/topfunky/demo-mocha-watch-bug

Last synced: 11 days ago
JSON representation

A demo to show a bug in mocha's --watch option

Awesome Lists containing this project

README

        

DESCRIPTION
===========

Running the `--watch` option successfully runs tests, but doesn't reload the implementation code.

To recreate:

npm install
./node_modules/mocha/bin/mocha --reporter spec --watch

Edit `lib/pie.js` to print a message to the console.

You won't ever see that message.

Expected:

The message should be printed to the terminal.

Addendum:

The message is properly printed if you stop `mocha` and run it alone (for example, `npm test`).