Skip to content

Commit 7112a9a

Browse files
jrgemignaniMuhammadTahaNaveed
authored andcommitted
Upgrade Jest to v29 for node: protocol compatibility (#2307)
Note: This PR was created with AI tools and a human. The pg-connection-string module (dependency of pg) now uses the node: protocol prefix for built-in modules (e.g., require('node:process')). Jest 26 does not support this syntax, causing test failures. Changes: - Upgrade jest from ^26.6.3 to ^29.7.0 - Upgrade ts-jest from ^26.5.1 to ^29.4.6 - Upgrade @types/jest from ^26.0.20 to ^29.5.14 - Update typescript to ^4.9.5 This also resolves 19 npm audit vulnerabilities (17 moderate, 2 high) that existed in the older Jest 26 dependency tree. modified: drivers/nodejs/package.json
1 parent ce5d3a1 commit 7112a9a

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

drivers/nodejs/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
"pg": ">=6.0.0"
3434
},
3535
"devDependencies": {
36-
"@types/jest": "^26.0.20",
36+
"@types/jest": "^29.5.14",
3737
"@types/pg": "^7.14.10",
3838
"@typescript-eslint/eslint-plugin": "^4.22.1",
3939
"@typescript-eslint/parser": "^4.22.1",
@@ -44,8 +44,8 @@
4444
"eslint-plugin-jest": "^24.3.6",
4545
"eslint-plugin-node": "^11.1.0",
4646
"eslint-plugin-promise": "^4.3.1",
47-
"jest": "^26.6.3",
48-
"ts-jest": "^26.5.1",
49-
"typescript": "^4.1.5"
47+
"jest": "^29.7.0",
48+
"ts-jest": "^29.4.6",
49+
"typescript": "^4.9.5"
5050
}
5151
}

0 commit comments

Comments
 (0)