Closed smalike closed 8 years ago
Is this error happening in Windows? I'm not sure about the gotchas with Istanbul and Windows, but here is the official documentation: https://github.com/gotwarlost/istanbul#usage-on-windows.
I had this problem, fixed by using WIN approach below ...
LINUX "./node_modules/.bin/istanbul test ./node_modules/.bin/_mocha -- --recursive -R spec" WIN "./node_modules/.bin/istanbul test ./node_modules/mocha/bin/_mocha -- --recursive -R spec"
See https://github.com/gotwarlost/istanbul/issues/13#issuecomment-32001190 for more details
@danday74 Your solution worked for me also. Thank you.
$ npm run coverage "test-cov": "istanbul cover node_modules/mocha/bin/_mocha -- --recursive --timeout 500000 test/ --compilers js:babel-register",