Skip to content

Commit 8c375ac

Browse files
kiranpsTimer
authored andcommitted
modified documentation for setting up jest-enzyme (#1562)
1 parent cb95889 commit 8c375ac

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)