I am using mocha-phantomjs setup for unit testing. I have following package.json scriot to run the tests.
\"scripts\": { \"test\": \"npm run testFlickr\", \"
This is a problem when using npm run, it has to do with Mocha exiting with code !== 0 whenever a test fails. If you are on Windows try this:
npm run
"scripts": { "test": "npm run testFlickr || ECHO.", "testFlickr": "mocha-phantomjs ./test/FlickrTest.html || ECHO." }