docs: update jest-enzyme section (#2392)

since CRA now use the latest version of Jest under the hood,
`jest-enzyme` v3.2.0 is now working perfectly fine
This commit is contained in:
Lufty Wiranda
2017-05-30 01:50:32 +07:00
committed by William Monk
parent 4c80b02d68
commit 3d6ead5215

View File

@@ -1171,10 +1171,10 @@ Additionally, you might find [jest-enzyme](https://github.com/blainekasten/enzym
expect(wrapper).toContainReact(welcome)
```
To setup jest-enzyme with Create React App, follow the instructions for [initializing your test environment](#initializing-test-environment) to import `jest-enzyme`. **Note that currently only version 2.x is compatible with Create React App.**
To setup jest-enzyme with Create React App, follow the instructions for [initializing your test environment](#initializing-test-environment) to import `jest-enzyme`.
```sh
npm install --save-dev jest-enzyme@2.x
npm install --save-dev jest-enzyme
```
```js