Files
flynn/src/cli/setup/summary.test.ts
T

28 lines
879 B
TypeScript

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 * * *)');
});
});