Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
A demo to show a bug in mocha's --watch option
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib
test
.gitignore
README.md
package.json

README.md

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).

Something went wrong with that request. Please try again.