better handling of the test database container

This commit is contained in:
dakkar 2025-07-10 15:43:57 +01:00
parent 5b21dd208e
commit 8e58d356db

View file

@ -273,12 +273,15 @@ To run many of the tests, you need a dedicated database. To set this up:
3. Start the database container:
```bash
docker compose -f packages/backend/test/compose.yml up
docker compose -f packages/backend/test/compose.yml up -d
```
Now you can run `pnpm test` and `pnpm --filter=backend test:e2e` to
run the tests.
To stop the database container, run `docker compose -f
packages/backend/test/compose.yml up -d down`
### Environment Variables
- `MISSKEY_CONFIG_DIR` changes the directory where config files are