Skip to content

Commit 6d22a78

Browse files
kiranpsgaearon
authored andcommitted
modified documentation for setting up jest-enzyme (#1562)
1 parent 9c33f60 commit 6d22a78

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

packages/react-scripts/template/README.md

+4
Original file line numberDiff line numberDiff line change
@@ -954,6 +954,10 @@ expect(wrapper).toContainReact(welcome)
954954

955955
To setup jest-enzyme with Create React App, follow the instructions for [initializing your test environment](#initializing-test-environment) to import `jest-enzyme`.
956956

957+
```sh
958+
npm install --save-dev jest-enzyme
959+
```
960+
957961
```js
958962
// src/setupTests.js
959963
import 'jest-enzyme';

0 commit comments

Comments
 (0)