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

Function seedLastUpdate

test/lifecycleLastUpdateAck.test.js:145–157  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

143});
144
145function seedLastUpdate() {
146 _resetLastUpdateStateForTesting();
147 _persistLastUpdateStateForTesting({
148 to_version: '1.88.0',
149 from_version: '1.87.0',
150 status: 'success',
151 finished_at: Date.now(),
152 directive_id: 'd-test-123',
153 });
154 const p = _getLastUpdateStatePathForTesting();
155 assert.ok(fs.existsSync(p), 'precondition: state file present');
156 return p;
157}
158
159test('lifecycle heartbeat: 200 with {ok:false} envelope keeps the last_update state file', async () => {
160 const originalFetch = global.fetch;

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected