I'm trying to get Mocha to watch my project for test and constantly run the tests but when I use the -w
flag I get an error.
Here the test executes fine:
C:\Foo>mocha
.
? 1 tests complete (3ms)
and here with -w
C:\Foo>mocha -w
node.js:201
throw e; // process.nextTick error, or 'error' event on first tick
^
Error: No such module
at EventEmitter.<anonymous> (node.js:392:27)
at Object.<anonymous> (C:\Users\Greg\AppData\Roaming\npm\node_modules\mocha\bin\_mocha:203:11)
at Module._compile (module.js:441:26)
at Object..js (module.js:459:10)
at Module.load (module.js:348:31)
at Function._load (module.js:308:12)
at Array.0 (module.js:479:10)
at EventEmitter._tickCallback (node.js:192:40)
I have Mocha installed globally (npm install -g mocha
) and should installed locally to the project.
I'm using node v0.6015, Mocha 1.0.1 and Should 0.6.1 on 64bit Windows 7 home premium.