MCPcopy Create free account
hub / github.com/EvoMap/evolver / makeTmpDir

Function makeTmpDir

test/resolveWorkspaceId.test.js:23–27  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

21// capture the secret (see memory: paths.test.js /tmp/.git flake). A real user
22// project is a git repo anyway, so this matches reality.
23function makeTmpDir() {
24 const d = fs.realpathSync(fs.mkdtempSync(path.join(os.tmpdir(), 'evolver-wsid-test-')));
25 execSync('git init -q', { cwd: d });
26 return d;
27}
28function cleanup(dir) { try { fs.rmSync(dir, { recursive: true, force: true }); } catch {} }
29
30// fs.symlinkSync on Windows requires either administrator privileges or

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected