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

Function makeTempDir

packages/cli/src/commands/doctor-opencode.test.ts:81–85  ·  view source on GitHub ↗
(prefix = "mc-v22-doctor-")

Source from the content-addressed store, hash-verified

79let originalXdgCacheHome: string | undefined;
80
81function makeTempDir(prefix = "mc-v22-doctor-"): string {
82 const dir = mkdtempSync(join(tmpdir(), prefix));
83 tempDirs.push(dir);
84 return dir;
85}
86
87function makeDb(): Database {
88 const db = new Database(":memory:");

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected