-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
No --harmony default and no --use_strict possible [feature request] #4757
Comments
Update to latest version of the
Why? You can add them yourself (as you've demonstrated in the OP)
Not sure what we can do about the strict mode, all of Jest's own code is strict already. The error seems to come from |
@SimenB let me thank you for helping first. Ok about the node args: let's just explicitly pass them and call the jest binary directly. Ok about the strict mode: so it's actually failing because of dependencies not strict-compliant. |
Oh reading #4519 it looks like the problem is istanbul and not jest: But I have the istanbul version you mentioned and my jest is already locally installed (not globally):
@digitalkaoz did you just fix this installing jest locally to the project? I already have but same error! |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
In different issues is mentioned how jest runs
--harmony
by default.I don't see this happening.
...
causing aUnexpected token
error but node supports itnode --harmony --use_strict ./node_modules/.bin/jest
I found out jest does not support the "strict" toonode --harmony ./node_modules/.bin/jest
works fineCould jest allow for a
nodeArguments
where we can pass an array of arguments to fire node with?Could jest support the
use_strict
node mode?Versions and config:
The text was updated successfully, but these errors were encountered: