mirror of
https://github.com/zhigang1992/create-react-app.git
synced 2026-04-28 17:35:42 +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] : [],
|
setupFilesAfterEnv: setupTestsFile ? [setupTestsFile] : [],
|
||||||
testMatch: [
|
testMatch: [
|
||||||
'<rootDir>/src/**/__tests__/**/*.{js,jsx,ts,tsx}',
|
'<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',
|
testEnvironment: 'jest-environment-jsdom-fourteen',
|
||||||
transform: {
|
transform: {
|
||||||
|
|||||||
Reference in New Issue
Block a user