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
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,14 @@ Jest Vue transformer with source map support
npm install --save-dev vue-jest
```

### Usage with Babel 7

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


```bash
npm install --save-dev babel-core@bridge
```

## Setup

To define `vue-jest` as a transformer for your `.vue` files, map them to the `vue-jest` module:
Expand Down