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

Function freshRequire

test/validatorDaemon.test.js:9–12  ·  view source on GitHub ↗
(id)

Source from the content-addressed store, hash-verified

7const assert = require('node:assert/strict');
8
9function freshRequire(id) {
10 delete require.cache[require.resolve(id)];
11 return require(id);
12}
13
14function withFakeFetch(impl, fn) {
15 const original = global.fetch;

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected