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 Timer committed Feb 23, 2017
1 parent cb95889 commit 8c375ac
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 8c375ac

Please sign in to comment.