better handling of the test database container
This commit is contained in:
parent
5b21dd208e
commit
8e58d356db
1 changed files with 4 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue