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

Function freshRequire

test/bridge.test.js:13–17  ·  view source on GitHub ↗
(modulePath)

Source from the content-addressed store, hash-verified

11const envKeys = ['EVOLVE_BRIDGE', 'OPENCLAW_WORKSPACE'];
12
13function freshRequire(modulePath) {
14 const resolved = require.resolve(modulePath);
15 delete require.cache[resolved];
16 return require(resolved);
17}
18
19beforeEach(() => {
20 for (const k of envKeys) { savedEnv[k] = process.env[k]; delete process.env[k]; }

Callers 1

bridge.test.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected