From d47bdaf0b4b1260025921b2d677110881cea320b Mon Sep 17 00:00:00 2001 From: TheFlow Date: Sat, 7 Feb 2026 18:46:06 +1300 Subject: [PATCH] fix: Remove fake CLAUDE_API_KEY from .env.test to prevent CI crash test_placeholder_key caused ClaudeAPI service to make real HTTPS requests to api.anthropic.com, resulting in unhandled rejections that crash the Jest worker process. Without a key, sendMessage() throws synchronously instead. All tests properly mock ClaudeAPI. Co-Authored-By: Claude Opus 4.6 --- .env.test | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.env.test b/.env.test index 57b6070b..da270136 100644 --- a/.env.test +++ b/.env.test @@ -6,7 +6,7 @@ JWT_EXPIRY=7d ADMIN_EMAIL=admin@tractatus.test PORT=9001 LOG_LEVEL=error -CLAUDE_API_KEY=test_placeholder_key +# CLAUDE_API_KEY intentionally unset - tests mock ClaudeAPI; a fake key causes real HTTPS requests ENABLE_AI_CURATION=false ENABLE_MEDIA_TRIAGE=false ENABLE_CASE_SUBMISSIONS=false