Skip to content
Open
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
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"camelcase": "^6.2.1",
"case-sensitive-paths-webpack-plugin": "^2.4.0",
"css-loader": "^6.5.1",
"css-minimizer-webpack-plugin": "^3.2.0",
"css-minimizer-webpack-plugin": "^8.0.0",
"dotenv": "^10.0.0",
"dotenv-expand": "^5.1.0",
"eslint": "^8.23.1",
Expand All @@ -62,7 +62,7 @@
"fs-extra": "^10.0.0",
"html-webpack-plugin": "^5.5.0",
"identity-obj-proxy": "^3.0.0",
"jest": "^27.4.3",
"jest": "^28.0.0",

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Jest upgrade leaves companion packages at incompatible versions

High Severity

Upgrading jest to ^28.0.0 while leaving babel-jest at ^27.4.2, jest-resolve at ^27.4.2, and @types/jest at ^27.5.2 creates a major version mismatch. These packages are part of the Jest monorepo and must share the same major version. Additionally, jest-watch-typeahead at ^1.0.0 only supports Jest 28 starting from version 1.1.0. This will cause test suite failures.

Additional Locations (2)

Fix in Cursor Fix in Web

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🔴 jest upgraded to ^28 but babel-jest and jest-resolve left at ^27, causing version mismatch

The PR upgrades jest from ^27.4.3 to ^28.0.0 (resolves to 28.1.3), but the companion packages babel-jest (line 34, still ^27.4.2, resolves to 27.5.1) and jest-resolve (line 66, still ^27.4.2, resolves to 27.5.1) were not updated. The file config/jest/babelTransform.js:3 does require('babel-jest').default, which will resolve to the top-level babel-jest@27.5.1. This babel-jest@27 was built against jest@27's @jest/transform interface, but jest@28 changed the transformer contract (e.g., different TransformOptions shape, new async methods). This version mismatch between the test runner and its transformer can lead to test failures or subtle behavioral differences.

Prompt for agents
In package.json, update babel-jest (line 34) from "^27.4.2" to "^28.0.0" and jest-resolve (line 66) from "^27.4.2" to "^28.0.0" to match the jest major version. Also consider updating @types/jest (line 23) from "^27.5.2" to "^28.0.0" for type compatibility.
Open in Devin Review

Was this helpful? React with 👍 or 👎 to provide feedback.

"jest-resolve": "^27.4.2",
"jest-watch-typeahead": "^1.0.0",
"js-sha3": "^0.8.0",
Expand Down Expand Up @@ -92,13 +92,13 @@
"source-map-loader": "^3.0.0",
"style-loader": "^3.3.1",
"tailwindcss": "^3.1.8",
"terser-webpack-plugin": "^5.2.5",
"terser-webpack-plugin": "^5.3.17",
"typescript": "^4.8.3",
"web-vitals": "^2.1.4",
"webpack": "^5.76.0",
"webpack-dev-server": "^4.6.0",
"webpack-manifest-plugin": "^4.0.2",
"workbox-webpack-plugin": "^6.4.1"
"workbox-webpack-plugin": "^7.1.0"
},
"scripts": {
"start": "HTTPS=true node scripts/start.js",
Expand Down
Loading
Loading