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 SpaceK33z committed Mar 7, 2017
1 parent f7d07e4 commit d07b7d1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/react-cy-scripts/template/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -758,6 +758,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 d07b7d1

Please sign in to comment.