Skip to content
This repository

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…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 lib
Octocat-spinner-32 test
Octocat-spinner-32 .gitignore
Octocat-spinner-32 README.md
Octocat-spinner-32 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.