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

Function freshRequire

test/nodeIdResolution.test.js:18–21  ·  view source on GitHub ↗
(id)

Source from the content-addressed store, hash-verified

16const path = require('path');
17
18function freshRequire(id) {
19 delete require.cache[require.resolve(id)];
20 return require(id);
21}
22
23function withTempHome(run) {
24 const tmpHome = fs.mkdtempSync(path.join(os.tmpdir(), 'evomap-nodeid-'));

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected