export default E constants
MoonTahoe opened this issue · 3 comments
I updated my code to use ES6 import and export statements. Everything works, and my tests are passing, but the new syntax screwed up my code coverage... specifically branches.
It seems like this guy also had the same issue: Question
Any suggestions on how I can use ES6 imports and exports and still keep 100% code coverage?
Upon doing some research I found out that isparta covers export default
... temporary solution hopefully?
@MoonTahoe I believe your issue is being caused by the babel source map no longer being correct. Anything that "makes it work" other than fixing the source map is at best a temporary solution.
Do you know the exact version release that causes the regression? If so, we can probably look at https://github.com/babel/babel/tree/master/packages/babel-plugin-transform-es2015-modules-commonjs and see what might have happened.
I am using babel-cli version 6.11.4 to run the tests...