diff --git a/.env.example b/.env.example index 726530df..cf1028b4 100644 --- a/.env.example +++ b/.env.example @@ -11,8 +11,16 @@ POSTGRES_DB=nestri # For anything run outside a container — `bun dev`, `bun run db:migrate`. DATABASE_URL=postgres://postgres:postgres@localhost:5432/nestri -# Isolated database for tests. Required by DB-backed tests; unset tests fail. -TEST_DATABASE_URL= +# The database the tests run against. Required — DB-backed tests refuse to run +# rather than fall back to a database nobody named. +# +# **Point it at the same database as DATABASE_URL above.** "Isolated" means +# isolated from anything you care about, not isolated from DATABASE_URL: route +# tests reach the database through the app and core tests reach it directly, so +# two different values put the fixtures in one database and the assertions in +# the other. That fails around forty tests, in neither half's own code, with +# nothing in the output pointing at this line. +TEST_DATABASE_URL=postgres://postgres:postgres@localhost:5432/nestri # The issuer's public URL — the address a token's `iss` claim will carry. AUTH_ISSUER_URL=http://localhost:1337