From 207d9315b138fc6c830da5295342d0f034dbeab3 Mon Sep 17 00:00:00 2001 From: Nathan Brown Date: Mon, 15 Apr 2019 20:44:56 -0700 Subject: [PATCH] Update testMatch to also be compatible with Jest 24 (#6313) --- packages/react-scripts/scripts/utils/createJestConfig.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/react-scripts/scripts/utils/createJestConfig.js b/packages/react-scripts/scripts/utils/createJestConfig.js index 4300c7e480c..f57fc91b4d3 100644 --- a/packages/react-scripts/scripts/utils/createJestConfig.js +++ b/packages/react-scripts/scripts/utils/createJestConfig.js @@ -33,7 +33,7 @@ module.exports = (resolve, rootDir, isEjecting) => { setupFilesAfterEnv: setupTestsFile ? [setupTestsFile] : [], testMatch: [ '/src/**/__tests__/**/*.{js,jsx,ts,tsx}', - '/src/**/?(*.)(spec|test).{js,jsx,ts,tsx}', + '/src/**/*.{spec,test}.{js,jsx,ts,tsx}', ], testEnvironment: 'jest-environment-jsdom-fourteen', transform: {