Skip to content

Commit

Permalink
Remove jsdom-fourteen
Browse files Browse the repository at this point in the history
  • Loading branch information
ianschmitz committed May 4, 2020
1 parent 7c700b2 commit 0d313ba
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
1 change: 0 additions & 1 deletion packages/react-scripts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
4 changes: 1 addition & 3 deletions packages/react-scripts/scripts/utils/createJestConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,7 @@ module.exports = (resolve, rootDir, isEjecting) => {
'<rootDir>/src/**/__tests__/**/*.{js,jsx,ts,tsx}',
'<rootDir>/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
? '<rootDir>/node_modules/babel-jest'
Expand Down

0 comments on commit 0d313ba

Please sign in to comment.