In my package.json
, I have:
"scripts": {
"test": "mocha --require blanket -R html-cov > test/coverage.html --compilers coffee:'./node_modules/coffee-script/lib/coffee-script/register'"
},
So if I run npm test
, I get:
npm test
> my-site@1.0.0 test /Users/me/Sites/my-site
> mocha --require blanket -R html-cov > test/coverage.html --compilers coffee:'./node_modules/coffee-script/lib/coffee-script/register'
If I take out the blanket
stuff ("test": "mocha --compilers coffee:'./node_modules/coffee-script/lib/coffee-script/register'"
), then my tests run correctly.
I am using CoffeeScript
, if that matters. What am I doing incorrectly?