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