From 52613094ce768f434215a99201a70c7d98bba6d2 Mon Sep 17 00:00:00 2001 From: vsun Date: Wed, 30 Aug 2017 09:57:54 -0400 Subject: [PATCH] =?UTF-8?q?Add=20=E2=80=9Cnode=E2=80=9D=20to=20Jest's=20mo?= =?UTF-8?q?duleFileExtensions?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This is the same issue documented in react-script PR #2738 (https://github.com/facebookincubator/create-react-app/pull/2738), which has already been merged. --- packages/react-scripts/scripts/utils/createJestConfig.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/react-scripts/scripts/utils/createJestConfig.js b/packages/react-scripts/scripts/utils/createJestConfig.js index 559f96f45..09f724c59 100644 --- a/packages/react-scripts/scripts/utils/createJestConfig.js +++ b/packages/react-scripts/scripts/utils/createJestConfig.js @@ -37,6 +37,7 @@ module.exports = (resolve, rootDir) => { 'web.jsx', 'jsx', 'json', + 'node', ], testMatch: [ '/src/**/__tests__/**/*.ts?(x)', @@ -59,7 +60,7 @@ module.exports = (resolve, rootDir) => { 'ts-jest': { tsConfigFile: paths.appTsTestConfig, }, - } + }, }; if (rootDir) { config.rootDir = rootDir;