Skip to content
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

chore: add @legacy to install script #2058

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
4 changes: 2 additions & 2 deletions docs/installation/using-with-jest.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@ The plugin pulls all required dependencies (including jest), creates a `jest.con
After that, all you need to do is to install Vue Test Utils.

```bash
$ npm install --save-dev @vue/test-utils
$ npm install --save-dev @vue/test-utils@legacy
```

### Manual installation

After setting up Jest, the first thing to do is to install Vue Test Utils and [`vue-jest`](https://github.com/vuejs/vue-jest) to process Single-File Components:

```bash
$ npm install --save-dev @vue/test-utils vue-jest
$ npm install --save-dev @vue/test-utils@legacy vue-jest
```

Then, you need to tell Jest to transform `.vue` files using `vue-jest`. You can do so by adding the following configuration in `package.json` or in a standalone [Jest config file](https://jestjs.io/docs/en/configuration):
Expand Down