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

Function makeTempRoot

packages/pi-plugin/src/config/index.test.ts:13–17  ·  view source on GitHub ↗
(prefix: string)

Source from the content-addressed store, hash-verified

11const originalXdgConfigHome = process.env.XDG_CONFIG_HOME;
12
13function makeTempRoot(prefix: string): string {
14 const path = mkdtempSync(join(tmpdir(), prefix));
15 tempRoots.push(path);
16 return path;
17}
18
19function withHome(home: string): void {
20 process.env.HOME = home;

Callers 1

index.test.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected