MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / resetMongoDB

Function resetMongoDB

packages/core/fumadb/test/shared.ts:435–438  ·  view source on GitHub ↗
(mongodb: MongoClient)

Source from the content-addressed store, hash-verified

433}
434
435export async function resetMongoDB(mongodb: MongoClient) {
436 await ensureMongoPrimary(mongodb);
437 await mongodb.db().dropDatabase();
438}
439
440export async function resetDB(provider: SQLProvider) {
441 const kysely = kyselyTests.find((kysely) => kysely.provider === provider)!;

Callers 2

migrate.test.tsFile · 0.90
query.test.tsFile · 0.90

Calls 1

ensureMongoPrimaryFunction · 0.85

Tested by

no test coverage detected