-
Notifications
You must be signed in to change notification settings - Fork 27
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 import #47
Comments
@emman27 were you ever able to get this to work. I'm completely blocked. |
@signal-intrusion Unfortunately not. I've moved to vue-jest. If you're on a relatively new project. I'd suggest setting up with vue-cli also - they've recently added Jest as one of their default configs. |
Guy unfortunately I don't have now much capacity to investigate this bug, I'd assume it's related to .babelrc config try to use the default |
@vire Your suggestion worked perfectly for me. Thank you. I have a nuxt project and I am configuring jest to work with my Nuxt components. |
I'm submitting a ... (check one with "x")
Current behavior
I've used jest-vue-preprocessor since the start of my project to work with files. Recently, I've added process.env (using Webpack's define plugin) to my project, and it gives me the following error.
Expected behavior
Minimal reproduction of the problem with instructions
Relevant sections of
What is the motivation / use case for changing the behavior?
Er I just want it to work
Please tell us about your environment:
Ubuntu 16.04, bash.
Node version : 8.9.1
Platform: Linux
As a side note, I've tried replacing jest-vue-preprocessor with vue-jest, and the transpilation process goes fine, which is why I'm assuming the error lies here and not in something else. However vue-jest has problems with test coverage reporting which I can't deal with either.
The text was updated successfully, but these errors were encountered: