feat(heartbeat): add process memory and backup health checks
This commit is contained in:
@@ -962,6 +962,14 @@ describe('configSchema automation', () => {
|
||||
expect(result.automation.daily_briefing.prompt).toBe('Custom briefing prompt');
|
||||
expect(result.automation.daily_briefing.model_tier).toBe('fast');
|
||||
});
|
||||
|
||||
it('defaults heartbeat extended thresholds and checks', () => {
|
||||
const result = configSchema.parse(baseConfig);
|
||||
expect(result.automation.heartbeat.process_memory_threshold_mb).toBe(1500);
|
||||
expect(result.automation.heartbeat.backup_failure_threshold).toBe(1);
|
||||
expect(result.automation.heartbeat.checks).toContain('process_memory');
|
||||
expect(result.automation.heartbeat.checks).toContain('backup');
|
||||
});
|
||||
});
|
||||
|
||||
describe('configSchema — intents', () => {
|
||||
|
||||
Reference in New Issue
Block a user