Files
cgm-remote-monitor/tests/ci.test.env
T
Ben WestandCopilot 61501cac3a feat(tests): add NODE_ENV=test safety check (GAP-SYNC-046)
SAFETY-001: Fix tests/ci.test.env to use NODE_ENV=test instead of production
SAFETY-002: Add NODE_ENV check to tests/hooks.js with warning
SAFETY-003: Create tests/fixtures/test-guard.js with guarded deleteMany/drop helpers

This prevents deleteMany({}) from accidentally running against production
databases if test environment is misconfigured.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-03-12 12:24:15 -07:00

13 lines
294 B
Bash

CUSTOMCONNSTR_mongo=mongodb://127.0.0.1:27017/testdb
API_SECRET=abcdefghij123
HOSTNAME=localhost
INSECURE_USE_HTTP=true
PORT=1337
NODE_ENV=test
CI=true
CODACY_PROJECT_TOKEN=cff7ab3377d6434a9355fd051dbb4595
MONGO_POOL_SIZE=5
AUTH_FAIL_DELAY=50
MONGO_MIN_POOL_SIZE=1
MONGO_MAX_IDLE_TIME_MS=10000