feat(companion): add heartbeat loop getState snapshot

This commit is contained in:
William Valentin
2026-02-16 19:12:47 -08:00
parent 636f24016f
commit 1fb70ce0b1
5 changed files with 35 additions and 1 deletions
+5
View File
@@ -191,5 +191,10 @@ describe('CompanionHeartbeatLoop', () => {
await loop.tickNow();
expect(publishHeartbeat).toHaveBeenCalledTimes(1);
expect(loop.running).toBe(false);
expect(loop.getState()).toEqual({
running: false,
failureCount: 0,
lastFailure: null,
});
});
});