-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.test
More file actions
19 lines (14 loc) · 749 Bytes
/
Copy path.env.test
File metadata and controls
19 lines (14 loc) · 749 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# Committed with dummies on purpose — `src/server/env.ts` zod-parses at module load,
# so any test that touches server code fails before its body runs without these.
# DATABASE_URL is overridden at runtime by `tests/setup/global-setup.ts` after
# Testcontainers spins up Postgres. Per-machine overrides go in `.env.test.local`.
# NEVER put real secrets here.
NODE_ENV=test
DATABASE_URL=postgresql://test:test@127.0.0.1:5432/placeholder
AUTH_SECRET=test-secret-for-local-tests-never-use-in-prod
AUTH_URL=http://localhost:3000
APP_URL=http://localhost:3000
# Nodemailer transport is `vi.mock`-ed by email-flow tests — Gmail is never hit.
GMAIL_USER=test@example.com
GMAIL_APP_PASSWORD=test-password-noop-in-tests
CRON_SECRET=test-cron-secret