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

Function captureLogger

test/lifecycleForceUpdateTrigger.test.js:115–129  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

113}
114
115function captureLogger() {
116 const warns = [];
117 const logs = [];
118 return {
119 warns,
120 logs,
121 logger: {
122 info: () => {},
123 log: (m) => logs.push(String(m)),
124 warn: (m) => warns.push(String(m)),
125 error: () => {},
126 debug: () => {},
127 },
128 };
129}
130
131function makeStore({ nodeId = 'node_aaaaaaaaaaaa' } = {}) {
132 const state = { node_id: nodeId };

Calls

no outgoing calls

Tested by

no test coverage detected