fix(create-app): pin jest to ~30.3.0 to avoid Node 24.9+ requirement
Jest 30.4.0 introduced synchronous require(ESM) support that requires Node v24.9+. With ^30.2.0 in the templates, a fresh yarn install in e2e test apps resolves to 30.4.x and breaks on Node 22. Pin to ~30.3.0 (30.3.x patches only), which includes the 30.3.0 fix that explicitly disables the require_module feature flag, while staying below the 30.4.0 runtime requirement. Co-authored-by: Cursor <cursoragent@cursor.com> Signed-off-by: Fredrik Adelöw <freben@gmail.com>
This commit is contained in:
committed by
Fredrik Adelöw
parent
8006acf89a
commit
9198a7f03e
@@ -42,7 +42,7 @@
|
||||
"@jest/environment-jsdom-abstract": "^30.0.0",
|
||||
"@playwright/test": "^1.32.3",
|
||||
"@types/jest": "^30.0.0",
|
||||
"jest": "^30.2.0",
|
||||
"jest": "~30.3.0",
|
||||
"jsdom": "^27.1.0",
|
||||
"node-gyp": "^10.0.0",
|
||||
"prettier": "^2.3.2",
|
||||
|
||||
@@ -55,7 +55,7 @@
|
||||
"@jest/environment-jsdom-abstract": "^30.0.0",
|
||||
"@playwright/test": "^1.32.3",
|
||||
"@types/jest": "^30.0.0",
|
||||
"jest": "^30.2.0",
|
||||
"jest": "~30.3.0",
|
||||
"jsdom": "^27.1.0",
|
||||
"node-gyp": "^10.0.0",
|
||||
"prettier": "^2.3.2",
|
||||
|
||||
Reference in New Issue
Block a user