diff --git a/jest.json b/jest.json index b5713a9dc77afc15459a2b531716ba0d63c852f3..947d95cd44f04a7c4501be996ca01b82001e7832 100644 --- a/jest.json +++ b/jest.json @@ -33,7 +33,7 @@ "<rootDir>/__tests__/utils" ], "preset": "jest-puppeteer", - "setupFilesAfterEnv": ["@testing-library/jest-dom/extend-expect"], + "setupFilesAfterEnv": ["@testing-library/jest-dom/jest-globals"], "transformIgnorePatterns": [ "<rootDir>/node_modules/(?!@react-dnd|react-dnd|dnd-core|react-dnd-html5-backend|dnd-multi-backend|rdndmb-html5-to-touch)" ], @@ -58,7 +58,7 @@ "preset": "jest-puppeteer", "setupFilesAfterEnv": [ "<rootDir>/setupJestIntegration.js", - "@testing-library/jest-dom/extend-expect" + "@testing-library/jest-dom/jest-globals" ], "transformIgnorePatterns": [ "<rootDir>/node_modules/(?!@react-dnd|react-dnd|dnd-core|react-dnd-html5-backend|dnd-multi-backend|rdndmb-html5-to-touch)" diff --git a/package.json b/package.json index 39fb0ef9cb05d4ba7061a4df6f1c524d2ef0b5f2..7e423351753e17a8e6042e53ddd6ad80d9a75170 100644 --- a/package.json +++ b/package.json @@ -94,7 +94,7 @@ "@babel/preset-react": "^7.16.7", "@pmmmwh/react-refresh-webpack-plugin": "^0.5.4", "@testing-library/dom": "^9.2.0", - "@testing-library/jest-dom": "^5.16.5", + "@testing-library/jest-dom": "^6.1.5", "@testing-library/react": "^12.1.5", "@testing-library/user-event": "^14.4.3", "@typescript-eslint/eslint-plugin": "^5.15.0", @@ -114,7 +114,7 @@ "eslint-plugin-flowtype": "^8.0.3", "eslint-plugin-import": "^2.25.4", "eslint-plugin-jest": "^27.1.5", - "eslint-plugin-jest-dom": "^4.0.3", + "eslint-plugin-jest-dom": "^5.1.0", "eslint-plugin-jsx-a11y": "^6.4.1", "eslint-plugin-react": "^7.29.4", "eslint-plugin-react-hooks": "^4.6.0",