Skip to content

Commit

Permalink
Update testMatch to also be compatible with Jest 24 (#6313)
Browse files Browse the repository at this point in the history
  • Loading branch information
ngbrown authored and ianschmitz committed Apr 16, 2019
1 parent 9048dd6 commit 207d931
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/react-scripts/scripts/utils/createJestConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ module.exports = (resolve, rootDir, isEjecting) => {
setupFilesAfterEnv: setupTestsFile ? [setupTestsFile] : [],
testMatch: [
'<rootDir>/src/**/__tests__/**/*.{js,jsx,ts,tsx}',
'<rootDir>/src/**/?(*.)(spec|test).{js,jsx,ts,tsx}',
'<rootDir>/src/**/*.{spec,test}.{js,jsx,ts,tsx}',
],
testEnvironment: 'jest-environment-jsdom-fourteen',
transform: {
Expand Down

0 comments on commit 207d931

Please sign in to comment.