From 43e7506528a8358fb23f26b56e4b33fe11c9b3fe Mon Sep 17 00:00:00 2001 From: TheFlow Date: Sat, 7 Feb 2026 18:41:53 +1300 Subject: [PATCH] fix: Add --forceExit to test:unit script for CI stability ClaudeAPI service worker crashes with unhandled rejection when using placeholder API key in test env, causing non-zero exit despite all 524 tests passing. --forceExit ensures clean process termination. Co-Authored-By: Claude Opus 4.6 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 9a86996e..d4c078f1 100644 --- a/package.json +++ b/package.json @@ -13,7 +13,7 @@ "build": "npm run update:cache && npm run build:css", "test": "jest --coverage", "test:watch": "jest --watch", - "test:unit": "jest tests/unit", + "test:unit": "jest tests/unit --forceExit", "test:integration": "jest tests/integration --runInBand --forceExit", "test:security": "jest tests/security", "lint": "eslint src/ tests/",