Skip to content

Commit 3ad5c40

Browse files
committed
fix: pin @smithy/node-http-handler <4.5.0 to fix Jest VM dynamic import issue
@smithy/node-http-handler@4.5.0 introduced await import('node:http') as a lazy load optimization. This breaks inside Jest's VM sandbox on Node 22+ with ERR_VM_DYNAMIC_IMPORT_CALLBACK_MISSING_FLAG. Pinning to 4.4.x which uses static require('node:http') instead. node:https was never affected (already statically required in all versions).
1 parent 89d640e commit 3ad5c40

2 files changed

Lines changed: 2599 additions & 7490 deletions

File tree

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,8 @@
5050
"pnpm": {
5151
"overrides": {
5252
"@dataplan/json": "1.0.0",
53-
"graphql": "16.13.0"
53+
"graphql": "16.13.0",
54+
"@smithy/node-http-handler": "<4.5.0"
5455
},
5556
"publicHoistPattern": [
5657
"@jest/test-sequencer"

0 commit comments

Comments
 (0)