MCPcopy Create free account
hub / github.com/OpenPipe/OpenPipe / resetDb

Function resetDb

app/src/tests/helpers/setup.ts:7–11  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

5
6// Reset all Prisma data
7const resetDb = async () => {
8 await sql`
9 truncate "Project" cascade;
10 `.execute(kysely);
11};
12
13beforeEach(async () => {
14 await resetDb();

Callers 1

setup.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected