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

Function mkTmpWorkspace

test/workspaceKeychain.test.js:28–32  ·  view source on GitHub ↗
(prefix)

Source from the content-addressed store, hash-verified

26}
27
28function mkTmpWorkspace(prefix) {
29 const dir = fs.mkdtempSync(path.join(os.tmpdir(), prefix));
30 fs.mkdirSync(path.join(dir, 'workspace'), { recursive: true });
31 return path.join(dir, 'workspace');
32}
33
34// Replace workspaceKeychain.js in the require cache with a mock that
35// records all calls and lets each test pre-seed its own state.

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected