Skip to content

Commit

Permalink
modified documentation for setting up jest-enzyme (facebook#1562)
Browse files Browse the repository at this point in the history
  • Loading branch information
kiranps authored and Daniel Figueiredo committed Feb 22, 2017
1 parent 348522a commit 3ed3f5b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/react-scripts/template/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -954,6 +954,10 @@ 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`.

```sh
npm install --save-dev jest-enzyme
```

```js
// src/setupTests.js
import 'jest-enzyme';
Expand Down

0 comments on commit 3ed3f5b

Please sign in to comment.