test: align jest db bootstrap with ci

This commit is contained in:
2025-10-16 23:01:29 -05:00
parent 8ca2756d7b
commit 2ad5946a4b
6 changed files with 46 additions and 22 deletions

View File

@@ -150,7 +150,7 @@ The application comes with pre-seeded demo accounts:
### Quality Gates & Tests
`npm run lint` and `npm test` must pass in both the backend and frontend. The backend Jest suite bootstraps a disposable Postgres instance via Docker (using `docker-compose.test.yml`), so Docker must be available on your workstation.
`npm run lint` and `npm test` must pass in both the backend and frontend. By default, the backend Jest suite bootstraps a disposable Postgres instance via Docker (using `docker-compose.test.yml`), so Docker must be available on your workstation. To point the tests at an existing database (e.g., CI runners), set `USE_DOCKER_TEST_DB=false` and supply `DATABASE_URL`/`POSTGRES_*`.
Quick commands: