Files

10 lines
310 B
TypeScript
Raw Permalink Normal View History

import { beforeEach } from "vitest";
import postgres from "postgres";
// Limpia las tablas antes de cada test para aislarlos.
const sql = postgres(process.env.DATABASE_URL!, { max: 1 });
beforeEach(async () => {
await sql.unsafe("TRUNCATE action_items, votes, notes, groups, columns, boards CASCADE");
});