Update testMatch to also be compatible with Jest 24 (#6313)

This commit is contained in:
Nathan Brown
2019-04-15 20:44:56 -07:00
committed by Ian Schmitz
parent 9048dd66a0
commit 207d9315b1

View File

@@ -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: {