diff --git a/docs/guides/jest.md b/docs/guides/jest.md index 91ec0298f..09dc68047 100644 --- a/docs/guides/jest.md +++ b/docs/guides/jest.md @@ -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": "/node_modules/babel-jest", "unmockedModulePathPatterns": [ - "react", - "enzyme" - ], - "moduleFileExtensions": [ - "json" + "node_modules/react/", + "node_modules/enzyme/" ] } ```