diff --git a/packages/react-scripts/package.json b/packages/react-scripts/package.json index 6b349060418..01afbb1faaa 100644 --- a/packages/react-scripts/package.json +++ b/packages/react-scripts/package.json @@ -56,7 +56,6 @@ "html-webpack-plugin": "4.3.0", "identity-obj-proxy": "3.0.0", "jest": "25.5.4", - "jest-environment-jsdom-fourteen": "1.0.1", "jest-resolve": "25.5.1", "jest-watch-typeahead": "0.5.0", "mini-css-extract-plugin": "0.9.0", diff --git a/packages/react-scripts/scripts/utils/createJestConfig.js b/packages/react-scripts/scripts/utils/createJestConfig.js index a3679d6b92b..fc4269918fb 100644 --- a/packages/react-scripts/scripts/utils/createJestConfig.js +++ b/packages/react-scripts/scripts/utils/createJestConfig.js @@ -38,9 +38,7 @@ module.exports = (resolve, rootDir, isEjecting) => { '/src/**/__tests__/**/*.{js,jsx,ts,tsx}', '/src/**/*.{spec,test}.{js,jsx,ts,tsx}', ], - // TODO: This doesn't actually do anything currently as the test script explicitly specifies the env. - // See https://github.com/facebook/create-react-app/issues/7491 - testEnvironment: 'jest-environment-jsdom-fourteen', + testEnvironment: 'jsdom', transform: { '^.+\\.(js|jsx|mjs|cjs|ts|tsx)$': isEjecting ? '/node_modules/babel-jest'