-
Notifications
You must be signed in to change notification settings - Fork 157
docs: add info for babel7 peer dep #173
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
Conversation
README.md
Outdated
If you use the latest Version of [jest](https://github.com/facebook/jest) and [babel-jest](https://github.com/facebook/jest/tree/master/packages/babel-jest) make sure to install the needed peer-dependency of `vue-jest` | ||
|
||
```bash | ||
npm install --save-dev [email protected] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use tag: npm install --save-dev babel-core@bridge
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@donaldshen saved my life.
Co-Authored-By: Edd Yerburgh <[email protected]>
Co-Authored-By: Edd Yerburgh <[email protected]>
Sorry, only saw the progress on this now. I added the suggestions. Including a typo ("dteailed") in the commit message. Let me know if I should fix that or if it's ok. |
Hey @escapedcat, thank you for your time and effort spent on this PR, contributions like yours help make Vue better for everyone. Cheers! 💚 |
@@ -12,7 +12,7 @@ npm install --save-dev vue-jest | |||
|
|||
### Usage with Babel 7 | |||
|
|||
If you use the latest Version of [jest](https://github.com/facebook/jest) and [babel-jest](https://github.com/facebook/jest/tree/master/packages/babel-jest) make sure to install the needed peer-dependency of `vue-jest` | |||
If you use [jest](https://github.com/facebook/jest) < 24.0.0 and [babel-jest](https://github.com/facebook/jest/tree/master/packages/babel-jest) make sure to install babel-core@bridge |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It should say > 24.0.0
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Confused me quite a lot
Every now and then I check if I still need the babel7 bridge and go through some issues of jest, babel-jest, etc. to figure why I still need it. I ended up here and saw #160.
It seems that a lot of people still being confused about this because a lot of people already moved to Babel v7.
It's fine that vue-jest needs the bridge, but might be easier for others to see immeditately what is needed to make it work. Seems like there's a bigger amount of people who don't look at the peer-deps first. Maybe this helps them.
Let me know if I'm wrong about this please. Thanks.