Open thitemple opened 8 years ago
Same question... :cry:
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.
Hello! Has any progress been made on this since the issue opened on May 2nd 2016?
I also have the same issue here in a learning/play app we are working on https://github.com/jacepatel/typescript-express-api maybe having an easy example will help narrow down the issue?
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