Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

export default E constants #71

Open
MoonTahoe opened this issue Aug 3, 2016 · 3 comments
Open

export default E constants #71

MoonTahoe opened this issue Aug 3, 2016 · 3 comments

Comments

@MoonTahoe
Copy link

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

screenshot 2016-08-03 14 07 02

Any suggestions on how I can use ES6 imports and exports and still keep 100% code coverage?

@MoonTahoe
Copy link
Author

Upon doing some research I found out that isparta covers export default... temporary solution hopefully?

@jeffrifwald
Copy link
Owner

@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.

@MoonTahoe
Copy link
Author

I am using babel-cli version 6.11.4 to run the tests...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants