mirror of
https://github.com/zhigang1992/create-react-app.git
synced 2026-03-29 00:18:13 +08:00
Update testMatch to also be compatible with Jest 24 (#6313)
This commit is contained in:
committed by
Ian Schmitz
parent
9048dd66a0
commit
207d9315b1
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user