Skip to content

Commit 3ed3f5b

Browse files
kiranpsDaniel Figueiredo
authored and
Daniel Figueiredo
committed
modified documentation for setting up jest-enzyme (facebook#1562)
1 parent 348522a commit 3ed3f5b

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)