From 6a2ac9751cef120d92a5f120b597aab77e05564a Mon Sep 17 00:00:00 2001 From: Christoph Pojer Date: Tue, 17 May 2016 18:26:43 -0700 Subject: [PATCH] Update Jest docs. --- docs/guides/jest.md | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) 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/" ] } ```