feat(setup): show operator automation and backup state in summary
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
import { describe, it, expect } from 'vitest';
|
||||
import { renderSummary } from './summary.js';
|
||||
import type { SetupConfig } from './config.js';
|
||||
|
||||
describe('renderSummary', () => {
|
||||
it('renders operator-pack related automation and backup state', () => {
|
||||
const config = {
|
||||
models: {
|
||||
default: { provider: 'anthropic', model: 'claude-sonnet' },
|
||||
},
|
||||
server: { port: 18800, localhost: true },
|
||||
automation: {
|
||||
heartbeat: { enabled: true },
|
||||
daily_briefing: { enabled: true },
|
||||
minio_sync: { enabled: true },
|
||||
},
|
||||
backup: {
|
||||
enabled: true,
|
||||
schedule: '0 2 * * *',
|
||||
},
|
||||
} as unknown as SetupConfig;
|
||||
|
||||
const output = renderSummary(config);
|
||||
expect(output).toContain('Automation: heartbeat, daily-briefing, minio-sync');
|
||||
expect(output).toContain('Backup: enabled (cron 0 2 * * *)');
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user