test: add board and postgres safety net

This commit is contained in:
2026-08-14 12:57:06 +02:00
parent ff5e5dc63e
commit 9a4da41b49
11 changed files with 445 additions and 91 deletions
+16
View File
@@ -30,6 +30,22 @@ npm run dev
Open `http://localhost:5173`; Vite proxies `/api` to port 8787.
## Test
Run the fast domain tests without external services:
```bash
npm test
```
With the development PostgreSQL container running, exercise the migration ledger and persistence API against uniquely named disposable databases:
```bash
npm run test:integration
```
The integration suite drops only the temporary databases it creates. Override `TEST_DATABASE_URL` when PostgreSQL is not available at the development default on port 5433.
## Data and API
The server stores its tables and migration ledger in the dedicated `osint` schema of PostgreSQL. `DATABASE_URL` is required.