-
-
Notifications
You must be signed in to change notification settings - Fork 353
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
Unexpected token ... with nyc 12.0.2, jasmine, and babel-plugin-istanbul #865
Comments
nyc 12.0.0 updated from babel 6 to babel 7, this drops support for node 4.x, node 6 is required for nyc 12 and up. Note babel-plugin-istanbul 4.1.6 still uses babel 6 but my intent is for 5.0.0 to use babel 7 as well. See 19b7d21 |
I think this has been fixed in v13+. I'll leave this open for now to be confirmed |
Closing this as nyc 12.0.0 dropped support for node.js 4, see the CHANGELOG.md for nyc@12.0.0. |
fritx
added a commit
to we-cli/jayin
that referenced
this issue
Jan 23, 2024
fritx
added a commit
to we-cli/jayin
that referenced
this issue
Jan 23, 2024
fritx
added a commit
to we-cli/jayin
that referenced
this issue
Jan 23, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Expected Behavior
Tests are executed and coverage is reported.
Observed Behavior
An exception is thrown:
Bonus Points! Code (or Repository) that Reproduces Issue
I have a simple source file and a unit test, both written in ES6.
Also, in package.json:
.babelrc:
.nycrc (or in package.json):
Executing the following line throws the exception:
NODE_ENV=test ./node_modules/.bin/nyc ./node_modules/.bin/jasmine test/test.spec.js
If I delete the .nycrc config and specify babel-reqiester in the command line the unit tests are executed and the coverage is shown correctly, however there are errors/warnings in the console.
The issue affects 12.0.0+. The older versions (like 11.9.0) work well.
Forensic Information
Operating System: Ubuntu 14.04 LTS
Environment Information:
The text was updated successfully, but these errors were encountered: