Skip to content

Commit a8b51ab

Browse files
thjaeckleclaude
andcommitted
fix(js): add --forceExit to Jest to prevent test hang with Node 24
Jest 30 with Node 24 waits indefinitely for open handles (timers, promises) that the WebSocket mock tests don't properly clean up. Adding --forceExit forces Jest to exit after tests complete. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent d316345 commit a8b51ab

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

javascript/lib/api/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
"build:barrels:copyright-header": "eslint -c ../../eslint.config.js --quiet --fix dist/index.ts",
3434
"build:barrels:compile": "tsc --project tsconfig-barrels.json",
3535
"lint": "eslint .",
36-
"test": "jest",
36+
"test": "jest --forceExit",
3737
"test:watch": "jest --watch"
3838
},
3939
"keywords": [

javascript/lib/dom/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
"build:barrels:copyright-header": "eslint -c ../../eslint.config.js --fix dist/index.ts",
3232
"build:barrels:compile": "tsc --project tsconfig-barrels.json",
3333
"lint": "eslint .",
34-
"test": "jest",
34+
"test": "jest --forceExit",
3535
"test:watch": "jest --watch"
3636
},
3737
"keywords": [

javascript/lib/node/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
"build:barrels:copyright-header": "eslint -c ../../eslint.config.js --quiet --fix dist/index.ts",
4040
"build:barrels:compile": "tsc --project tsconfig-barrels.json",
4141
"lint": "eslint .",
42-
"test": "jest",
42+
"test": "jest --forceExit",
4343
"test:watch": "jest --watch"
4444
},
4545
"keywords": [

0 commit comments

Comments
 (0)