mirror of
https://github.com/bckelley/cgm-remote-monitor.git
synced 2026-08-24 03:14:12 -05:00
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>
13 lines
294 B
Bash
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
|