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

Function freshRequire

test/localStateAwareness.test.js:7–11  ·  view source on GitHub ↗
(modulePath)

Source from the content-addressed store, hash-verified

5const path = require('path');
6
7function freshRequire(modulePath) {
8 const resolved = require.resolve(modulePath);
9 delete require.cache[resolved];
10 return require(resolved);
11}
12
13describe('localStateAwareness', () => {
14 let tmpDir;

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected