Skip to content

Commit

Permalink
modified documentation for setting up jest-enzyme (#1562)
Browse files Browse the repository at this point in the history
  • Loading branch information
kiranps authored and gaearon committed Feb 15, 2017
1 parent 9c33f60 commit 6d22a78
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 6d22a78

Please sign in to comment.