-
Notifications
You must be signed in to change notification settings - Fork 294
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
Vscode extension fails (Unexpected token) #84
Comments
Same here. Did you find a solution? |
I actually tried it on the same mac when I got home from work, it works now. I haven't tried it in work since. |
That's bizarre. Still broken for me. |
Just judging by the output it looks like jsx is emitted. And I'm guessing that maybe the babel config isn't getting picked up? |
Probably not related in any way but I was behind a proxy on work. Only thing that is different |
This problem is because this PR in jest has not been released yet. jestjs/jest#3076 |
Same here. Works fine in the terminal though. ● Test suite failed to run
` |
@5achinJani, do you have a repo we can use to troubleshoot this? |
@seanpoulter I figured the problem is with the node version. My system node version is v7 and the local/repo specific node is set using nvm which is v8.9.1 . vscode-jest runs on the system node so that's why this issue was produced. Apologies from my side I should have checked the node version before. |
That would do it. You might be able to tell it to use a specific version using the |
@5achinJani +1, bumping this issue. @seanpoulter |
You're given no details about your problem @aleccool213. If the following suggestions don't help, please create a new issue with all the instructions we need to reproduce your environment and a minimal example repo (e.g.: https://stackoverflow.com/help/mcve). The symptoms from the original post have been happening lately because we're calling Try something like this Bash script on a POSIX system:
Or on Windows, something like this in a .bat file:
|
Sorry, should have linked that I had the same problem as this comment.
This solution works! Thank you! |
My Disabling and re-enabling the |
The Vscode extension fails to run the the tests, output
The tests run normally on the command line with npm test
The text was updated successfully, but these errors were encountered: