Open ghost opened 8 years ago
the same question
I'm using this command on Mac and Windows and it's working. Hope this helps.
./node_modules/.bin/istanbul cover ./node_modules/mocha/bin/_mocha
Give this a read, https://github.com/gotwarlost/istanbul/issues/677
It was my similar question that the answer fixed my problem.
I have similar issues using
babel-node ./node_modules/.bin/babel-istanbul cover ./node_modules/mocha/bin/_mocha --require ./node_modules/dotenv/config -- --timeout 10000 --recursive app/tests
I tried with ./node_modules/.bin/babel-node
but no luck.
Any help will be appreciated.
I use this, works great.
./node_modules/.bin/istanbul cover ./node_modules/mocha/bin/_mocha --require --compilers js:babel-core/register./node_modules/dotenv/config -- --timeout 10000 --recursive app/tests
@kalote add a space after --compilers js:babel-core/register
I'm still getting the same issue please assist istanbul cover --report ./node_modules/.bin/_mocha -R spec
@gotwarlost Normal usage on Windows always throws this exceptions:
NPM Script