-
Notifications
You must be signed in to change notification settings - Fork 156
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
vue-jest can't find babel #160
Comments
By adding the https://github.com/babel/babel-bridge package it is solved. Doesn't it mean that the |
We have babel-core as a peerDependency, it's up to you to use either |
How are we meant to know this? |
Isn't the point of babel bridge to help maintainers solve this issue? Is this not for the maintainers to do? |
No, I think there is a problem with the new naming. In order to fix the issue I installed this package: |
I ran into this issue too. I'm surprised it's not documented in the Jest configuration docs? |
Is there any way on how to direct vue-jest to use
I found this too:
But I have a fully working babel.config.json (as recommended by babel's website) |
@brightknight08 Solution can be found here: Use |
Well, I tried that out how many times.. tried out so many solutions and I was just about to give up, then I saw within the package.json, that some script commands were added: |
@Thaval in order to run a script coming from node_modules directly from the command line you should specify the path to the bin command ex. for jest it should be |
This was the solution for me. Nothing else worked other than specifying the babel config file in the transform |
While trying to test vue components I get the following error:
package.json:
.babelrc
jest.config.js
When looking at the referenced file I can see:
Shouldn't that be
@babel/core
?Repository:
https://github.com/SuperDJ/vue-jest-babel-core
The text was updated successfully, but these errors were encountered: