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

Function freshObserver

test/webuiObserver.test.js:25–32  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

23];
24
25function freshObserver() {
26 for (const key of Object.keys(require.cache)) {
27 if (key.includes(`${path.sep}src${path.sep}webui${path.sep}`) || key.endsWith(`${path.sep}src${path.sep}gep${path.sep}paths.js`)) {
28 delete require.cache[key];
29 }
30 }
31 return require('../src/webui/observer');
32}
33
34function writeJson(filePath, value) {
35 fs.mkdirSync(path.dirname(filePath), { recursive: true });

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected