MCPcopy Create free account
hub / github.com/Openpanel-dev/openpanel / teardownPostgresFixtures

Function teardownPostgresFixtures

test/fixtures.ts:418–429  ·  view source on GitHub ↗
(
  projectId: string,
  orgId: string
)

Source from the content-addressed store, hash-verified

416}
417
418export async function teardownPostgresFixtures(
419 projectId: string,
420 orgId: string
421): Promise<void> {
422 const db = getDb();
423 try {
424 await db.project.deleteMany({ where: { id: projectId } });
425 await db.organization.deleteMany({ where: { id: orgId } });
426 } finally {
427 await db.$disconnect();
428 }
429}
430
431
432

Callers 1

teardownFunction · 0.90

Calls 1

getDbFunction · 0.85

Tested by

no test coverage detected