Closed levity closed 8 years ago
CLA is valid!
Solves my problem!
Works for me too
@levity sorry for the slow turnaround on this, mind rebasing and I'll get it shipped ASAP?
@levity @dennybiasiolli @MinweiShen this will be shipped in the next
release of nyc
, I would love the extra help testing (as there are a few big features going out in this release as well).
npm cache clear; npm i nyc@next
nothing is wrong with node module. I also had same problem and googled all the day to figure this out... finally I found special characters in my code -- it was <U+2028> that was causing problem istanbul go through entire code for coverage. I removed all special character and ran test cases again. every thing works fine.
@satyendra-singh this is an interesting bug! if it's reproducable, perhaps you could open a separate ticket and we can dig into it?
@levity We should also port these changes to https://github.com/gotwarlost/istanbul/blob/master/lib/report/html.js. I ran into a similar issue with a setup involving the above mentioned file, and the fix is not yet to be found there. I can create a PR for that one.
This is similar to https://github.com/istanbuljs/istanbul-reports/pull/9 but it's a bit cleaner and addresses one more place where the error can occur.