Files
rowt/frontend/tests/helpers.ts
Philipp Hofer 8801e9ab06
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
reset db before each test to allow retrying
2025-11-20 12:06:03 +01:00

9 lines
210 B
TypeScript

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');
}