Skip to content

Commit

Permalink
Update Jest docs. (#399)
Browse files Browse the repository at this point in the history
  • Loading branch information
cpojer authored and blainekasten committed May 18, 2016
1 parent a7095d9 commit b5a3954
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions docs/guides/jest.md
Original file line number Diff line number Diff line change
@@ -1,19 +1,15 @@
# Using Jest with Enzyme

If you are using Jest 0.9+ with enzyme and using Jest's "automocking" feature, you will need to mark
If you are using Jest 0.9+ with enzyme and using Jest's automocking feature, you will need to mark
react and enzyme to be unmocked in your `package.json`:

```js
/* package.json */

"jest": {
"scriptPreprocessor": "<rootDir>/node_modules/babel-jest",
"unmockedModulePathPatterns": [
"react",
"enzyme"
],
"moduleFileExtensions": [
"json"
"node_modules/react/",
"node_modules/enzyme/"
]
}
```
Expand Down

0 comments on commit b5a3954

Please sign in to comment.