MCPcopy
hub / github.com/nowork-studio/NotFair / createDb

Function createDb

notfair-cmo/src/server/db/projects.test.ts:34–39  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

32}
33
34function createDb(): Database.Database {
35 const db = new Database(":memory:");
36 db.pragma("foreign_keys = ON");
37 applyMigrations(db);
38 return db;
39}
40
41beforeEach(() => {
42 testDb = createDb();

Callers 1

projects.test.tsFile · 0.70

Calls 1

applyMigrationsFunction · 0.70

Tested by

no test coverage detected