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

Function makeFakeEvomapDir

test/lifecycleNodeIdLegacyFallback.test.js:45–49  ·  view source on GitHub ↗
(setupFn)

Source from the content-addressed store, hash-verified

43// at the .evomap dir directly (not at a parent containing one) — that's
44// the contract `paths.getEvomapDir()` exposes.
45function makeFakeEvomapDir(setupFn) {
46 const dir = fs.mkdtempSync(path.join(os.tmpdir(), 'evolver-legacy-nodeid-'));
47 if (setupFn) setupFn(dir);
48 return dir;
49}
50
51function makeStore(initial = {}) {
52 const state = { ...initial };

Calls

no outgoing calls

Tested by

no test coverage detected