test: add board and postgres safety net
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user