Closed OverseePublic closed 5 years ago
However, if I run manual babel, it covers it correctly.
Seems like Clover does not recognize JSX IF correctly. Hope this information helps.
+1 I am also experiencing this issue
Modifying statement map can produce something like this.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Can you share a minimal reproduction of your setup or a link to your project repo? Sorry I missed the link, the original comment is a bit hard to parse. Hopefully our new issue template is better. Does your config look something like: https://istanbul.js.org/docs/tutorials/es2015/ ?
Are you still experiencing this with the latest nyc?
After fixing your config which was giving me build errors to start, I was able to get the correct results on babel 6 and nyc 11.6.x. I'm going to close this issue, if you are still having trouble, please try following the tutorials and the latest versions of babel and nyc.
Expected Behavior
Observed Behavior
Bonus Points! Code (or Repository) that Reproduces Issue
https://github.com/OverseePublic/jest-coverage-test
Operating System: the operating system you observed the issue on. Mac
sh -c 'node --version; npm --version; npm ls' > output.txt