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 1 commit
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 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.

```

## Setup

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