MCPcopy Create free account
hub / github.com/cortexkit/magic-context / tempDir

Function tempDir

packages/cli/src/commands/migrate.test.ts:16–20  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

14const databases: Array<{ close(): void }> = [];
15
16function tempDir(): string {
17 const dir = mkdtempSync(join(tmpdir(), "mc-migrate-test-"));
18 tempDirs.push(dir);
19 return dir;
20}
21
22function makeDb() {
23 const db = new Database(":memory:");

Callers 1

migrate.test.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected