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 <noreply@anthropic.com>
12 lines
478 B
Text
12 lines
478 B
Text
NODE_ENV=test
|
|
MONGODB_URI=mongodb://tractatus_user:uV6IajYK7pdrqY1uGad%2FK%2FLwDIaL7pebLZApPqS1FjE%3D@localhost:27017/tractatus_prod?authSource=tractatus_prod
|
|
MONGODB_DB=tractatus_prod
|
|
JWT_SECRET=test_secret_for_testing_only
|
|
JWT_EXPIRY=7d
|
|
ADMIN_EMAIL=admin@tractatus.test
|
|
PORT=9001
|
|
LOG_LEVEL=error
|
|
# 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
|