From ddce9c11afb6f5fb6a4d75b400cc39a787fbb940 Mon Sep 17 00:00:00 2001 From: John Tew Date: Thu, 31 Mar 2016 10:14:34 +0100 Subject: [PATCH] adds json to moduleFileExtensions in docs 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. --- docs/guides/jest.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docs/guides/jest.md b/docs/guides/jest.md index ace08fabf..91ec0298f 100644 --- a/docs/guides/jest.md +++ b/docs/guides/jest.md @@ -11,6 +11,9 @@ react and enzyme to be unmocked in your `package.json`: "unmockedModulePathPatterns": [ "react", "enzyme" + ], + "moduleFileExtensions": [ + "json" ] } ```