mirror of
https://github.com/zhigang1992/create-react-app.git
synced 2026-06-16 02:14:50 +08:00
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:
committed by
William Monk
parent
4c80b02d68
commit
3d6ead5215
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user