Closed ghost closed 8 years ago
You'll need to run your tests with babel-node. Install babel-cli and try this command:
babel-node babel-istanbul cover _mocha test/*.js
@jmcriffey it is not working.
Trying your solution I got:
Error: Cannot find module '/Users/Moritz/case-converter/babel-istanbul'
Then tried: babel-node node_modules/babel-istanbul cover _mocha test/*.js
Which just seems to do nothing.
Yeah I forgot you need to point to the bin.
babel-node node_modules/.bin/babel-istanbul cover _mocha test/*.js
When trying to run:
babel-istanbul cover _mocha test/**.js
I get: