Skip to content

Commit

Permalink
adds json to moduleFileExtensions in docs
Browse files Browse the repository at this point in the history
Under Jest, Enzyme fails to load due to its dependency 'Cheerio', which
requires its package.json file without specifying the '.json' file
extension. This can be mitigated by adding '.json' to the
mduleFileExtension Jest config item in a projet's package.json.
  • Loading branch information
John Tew committed Mar 31, 2016
1 parent 699ec7e commit ddce9c1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docs/guides/jest.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ react and enzyme to be unmocked in your `package.json`:
"unmockedModulePathPatterns": [
"react",
"enzyme"
],
"moduleFileExtensions": [
"json"
]
}
```
Expand Down

0 comments on commit ddce9c1

Please sign in to comment.