Open MIJOTHY opened 9 years ago
Just noticed - this only applies to the HTML reporting and not the lcov
Running into this same problem
Istanbul 0.3.17 Babel 5.8.21
karma.conf.js here: https://gist.github.com/cpinnix/a632946266571a6dff19
I can't speak to how Istanbul might formally support this but there are two options provided by outside projects today:
auxiliaryCommentBefore: 'istanbul ignore next'
option in babel
Ex: https://github.com/wycats/handlebars.js/blob/master/Gruntfile.js#L49Pros and cons to each but I've been able to get to 100% coverage for projects using both techniques.
I get the same issue with isparta, but using the auxiliaryCommentBefore
worked nicely. Thanks @kpdecker 👍
Doesn't seem to work anymore https://github.com/babel/babel/issues/3844
This babel-generated line is throwing up an uncovered branch for me when using
import blah from "blah"
.I've seen a similar issue here but it's closed for that module. I'm wondering if I'm missing something that can help with this?
Using istanbul 0.3.17 & babel 5.4.7.