I am creating a Typescript
+ Babel
+ React
application and trying to set test environment. By now I use Jest
, but it is not seem to produce correct coverage report for Typescript
+ Babel
chain. Is there a way to get correct coverage report for Typescript
+ Babel
with Jest
? Or I should use Mocha
, nyc
, etc.?
Asked
Active
Viewed 206 times
2

Lodin
- 2,028
- 2
- 18
- 29
-
I'd say using `istanbul` might be what you are looking for. Take a look at http://stackoverflow.com/questions/34027197/how-do-you-use-istanbul-code-coverage-with-transpiled-typescript and https://www.sitepen.com/blog/2015/09/29/code-coverage-for-typescript-and-other-transpiled-languages/ – Vasil Dininski Nov 30 '16 at 11:50