-
-
Notifications
You must be signed in to change notification settings - Fork 359
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
--all option fails with ES6 modules #91
Comments
Ohh nice find!
@bcoe is there any insight you could provide as to |
@novemberborn @jwhitfieldseed I know Istanbul has its own implementation of this functionality using the configuration setting: |
I can confirm this bug: |
@albertogasparin mind sending a gist or link to a project with a minimal failing example, I'm on the road for 8 hours today and would love to work on patching this. |
@bcoe is the repo from the issue useful? |
@bcoe actually, removing some indirection:
|
@jwhitfieldseed 👍 that's a big help. |
Hello @bcoe I see that you closed this issue, but this still seems to be happening. Do we have a workaround? thanks |
--all
causes NYC to fail immediately for code with ES6 modules. I am using Node @5.1.0, nyc @5.0.0 withmocha
andbabel-register
.The error looks like:
.babelrc:
package.json:
$ npm test
succeeds and$ npm run test-all
fails wheretest.js
usesimport
, orrequires
a file that usesimport
.https://github.com/jwhitfieldseed/nyc-issue-91 reproduces. It runs NYC with/out
--all
on code with/outimport
.It seems other syntax that needs transpiling is OK with or without
--all
. I tested with rest args, which are not in Node 5.with import
without import
The text was updated successfully, but these errors were encountered: