Skip to content

Commit

Permalink
docs: update jest-enzyme section (#2392)
Browse files Browse the repository at this point in the history
since CRA now use the latest version of Jest under the hood,
`jest-enzyme` v3.2.0 is now working perfectly fine
  • Loading branch information
luftywiranda13 authored and gaearon committed May 29, 2017
1 parent bcf398d commit 19c5277
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/react-scripts/template/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 19c5277

Please sign in to comment.