You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I eventually got this working. You can see my salvage repository to see what I had to do. Specifically, look in package.json for the cover script definition.
I'm trying to get code coverage on my TypeScript code. The tests are written using mocha
I'm compiling the code to a directory using
tsc --outDir test
For those not used to TypeScript this is the same as doing this with babel:
babel src --out-dir lib
The the code is compiled and source map files are generated.
After that, I try to run istanbul with the command:
node_modules/.bin/istanbul cover node_modules/mocha/bin/_mocha test/**/*.spec.js
All the tests are passing, but the result is always:
No coverage information was collected, exit without writing coverage information
Is there something special I should do after compiling the TS code? Thanks.
PS: I tried versions 0.4.2 and 1.0.0-alpha.2
The text was updated successfully, but these errors were encountered: