reset db before each test to allow retrying
Some checks failed
CI/CD Pipeline / test (push) Has started running
CI/CD Pipeline / deploy-staging (push) Has been cancelled
CI/CD Pipeline / deploy-main (push) Has been cancelled

This commit is contained in:
Philipp Hofer
2025-11-20 12:06:03 +01:00
parent 24fe027f7b
commit 8801e9ab06
3 changed files with 84 additions and 220 deletions

View File

@@ -0,0 +1,8 @@
import { exec } from 'child_process';
import { promisify } from 'util';
const execAsync = promisify(exec);
export async function resetDatabase(): Promise<void> {
await execAsync('cd .. && ./test_db.sh');
}