Skip to content

Commit

Permalink
docs: remove suggestion to use v2.x
Browse files Browse the repository at this point in the history
the latest version of CRA works with jest-enzyme v3.2.0
  • Loading branch information
luftywiranda13 authored and blainekasten committed May 28, 2017
1 parent 8a0d2a6 commit 1eed68c
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions packages/jest-enzyme/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,3 @@ If you are using Create React App, instead of adding to your `package.json` as a
```

This is documented on Create React App at the bottom of the [Testing Components](https://github.com/facebookincubator/create-react-app/blob/master/packages/react-scripts/template/README.md#testing-components) section. There is also more information about [Initializing Test Environment](https://github.com/facebookincubator/create-react-app/blob/master/packages/react-scripts/template/README.md#initializing-test-environment).

Also, instead of installing the latest version you should stick with versions below 3, because Create React App currently [uses](https://github.com/facebookincubator/create-react-app/blob/master/packages/react-scripts/package.json#L50) a version of jest which will cause [this issue](https://github.com/blainekasten/enzyme-matchers/issues/71):

```
yarn add jest-enzyme@2.1.2 --dev
```

0 comments on commit 1eed68c

Please sign in to comment.