MCPcopy
hub / github.com/tobi/qmd / getFreshDbPath

Function getFreshDbPath

test/cli.test.ts:87–90  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

85
86// Get a fresh database path for isolated tests
87function getFreshDbPath(): string {
88 testCounter++;
89 return join(testDir, `test-${testCounter}.sqlite`);
90}
91
92// Create an isolated test environment (db + config dir)
93async function createIsolatedTestEnv(prefix: string): Promise<{ dbPath: string; configDir: string }> {

Callers 1

cli.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected