Skip to content

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

Merged
merged 3 commits into from
Sep 12, 2019
Merged

docs: add info for babel7 peer dep #173

merged 3 commits into from
Sep 12, 2019

Conversation

escapedcat
Copy link
Contributor

@escapedcat escapedcat commented Apr 19, 2019

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.

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]

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

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@donaldshen saved my life.

escapedcat and others added 2 commits September 12, 2019 11:23
@escapedcat
Copy link
Contributor Author

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.

@eddyerburgh eddyerburgh merged commit 06010a8 into vuejs:master Sep 12, 2019
@vue-bot
Copy link

vue-bot commented Sep 12, 2019

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

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

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants