MCPcopy Create free account
hub / github.com/backnotprop/plannotator / tempRoot

Function tempRoot

packages/shared/source-save-node.test.ts:17–21  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

15const tempDirs: string[] = [];
16
17function tempRoot(): string {
18 const dir = mkdtempSync(join(tmpdir(), "plannotator-source-save-"));
19 tempDirs.push(dir);
20 return dir;
21}
22
23afterEach(() => {
24 for (const dir of tempDirs.splice(0)) {

Callers 1

Calls 1

pushMethod · 0.45

Tested by

no test coverage detected