From 8e58d356db86b7ac4d193907a6268af4eb157044 Mon Sep 17 00:00:00 2001 From: dakkar Date: Thu, 10 Jul 2025 15:43:57 +0100 Subject: [PATCH] better handling of the test database container --- CONTRIBUTING.Sharkey.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/CONTRIBUTING.Sharkey.md b/CONTRIBUTING.Sharkey.md index 000fd95194..04aab2062c 100644 --- a/CONTRIBUTING.Sharkey.md +++ b/CONTRIBUTING.Sharkey.md @@ -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