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

Function freshRequire

test/workspaceKeychain.test.js:23–26  ·  view source on GitHub ↗
(modulePath)

Source from the content-addressed store, hash-verified

21const KEYCHAIN_PATH = require.resolve('../src/gep/workspaceKeychain.js');
22
23function freshRequire(modulePath) {
24 delete require.cache[modulePath];
25 return require(modulePath);
26}
27
28function mkTmpWorkspace(prefix) {
29 const dir = fs.mkdtempSync(path.join(os.tmpdir(), prefix));

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected