Skip to content

Commit 207d931

Browse files
ngbrownianschmitz
authored andcommitted
Update testMatch to also be compatible with Jest 24 (#6313)
1 parent 9048dd6 commit 207d931

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/react-scripts/scripts/utils/createJestConfig.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ module.exports = (resolve, rootDir, isEjecting) => {
3333
setupFilesAfterEnv: setupTestsFile ? [setupTestsFile] : [],
3434
testMatch: [
3535
'<rootDir>/src/**/__tests__/**/*.{js,jsx,ts,tsx}',
36-
'<rootDir>/src/**/?(*.)(spec|test).{js,jsx,ts,tsx}',
36+
'<rootDir>/src/**/*.{spec,test}.{js,jsx,ts,tsx}',
3737
],
3838
testEnvironment: 'jest-environment-jsdom-fourteen',
3939
transform: {

0 commit comments

Comments
 (0)