9 lines
218 B
TypeScript
9 lines
218 B
TypeScript
import { exec } from 'child_process';
|
|
import { promisify } from 'util';
|
|
|
|
const execAsync = promisify(exec);
|
|
|
|
export async function resetDatabase(): Promise<void> {
|
|
await execAsync('cd .. && ./reset_test_data.sh');
|
|
}
|