Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

upgrade jest related pkgs #2502

Merged
merged 1 commit into from
Feb 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ui/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ module.exports = {
moduleDirectories: ['node_modules'],
reporters: ['default', 'jest-junit'],
setupFilesAfterEnv: [
'@testing-library/jest-dom/extend-expect',
'@testing-library/jest-dom',
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

jest-dom major version upgrade breaking change https://github.com/testing-library/jest-dom/releases/tag/v6.0.0

extend-expect was not documented in the Readme, so this change should
have minimal impact.
Users can now use the following import paths to automatically extend
"expect" for their chosen test platform:
@testing-library/jest-dom - jest (@types/jest)

'<rootDir>/src/setup-jest-test-framework.js',
],
testEnvironmentOptions: {
Expand Down
14 changes: 7 additions & 7 deletions ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
"flatpickr": "4.6.13",
"helmet": "6.0.0",
"immer": "9.0.15",
"jest-when": "^3.5.1",
"jest-when": "^3.6.0",
"js-cookie": "3.0.1",
"lodash": "4.17.21",
"lodash.clone": "4.5.0",
Expand Down Expand Up @@ -108,11 +108,11 @@
"devDependencies": {
"@babel/core": "7.23.9",
"@emotion/babel-plugin": "11.11.0",
"@emotion/jest": "11.10.5",
"@emotion/jest": "11.11.0",
"@sinonjs/referee": "9.1.1",
"@testing-library/jest-dom": "5.16.5",
"@testing-library/jest-dom": "6.4.2",
"@testing-library/react": "13.4.0",
"@types/jest": "^29.4.0",
"@types/jest": "^29.5.12",
"@wdio/cli": "8.0.13",
"@wdio/local-runner": "8.0.13",
"@wdio/mocha-framework": "8.0.13",
Expand All @@ -125,10 +125,10 @@
"expect-webdriverio": "3.4.0",
"follow-redirects": "1.15.4",
"identity-obj-proxy": "3.0.0",
"jest": "29.0.3",
"jest": "29.7.0",
"jest-emotion": "11.0.0",
"jest-environment-jsdom": "29.0.3",
"jest-junit": "14.0.1",
"jest-environment-jsdom": "29.7.0",
"jest-junit": "16.0.0",
"jsdom": "20.0.0",
"mutationobserver-shim": "0.3.7",
"nanoid": "4.0.0",
Expand Down