test(cli): add cron config mocks to test fixtures

- Add isCronDisabled mock returning true
- Add getCronScheduler mock returning null

This aligns test mocks with the new cron scheduler config interface.

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
This commit is contained in:
tanzhenxin 2026-03-29 00:58:00 +00:00
parent aa4939111c
commit c4ae7bf0cd
2 changed files with 4 additions and 0 deletions

View file

@ -204,6 +204,8 @@ describe('useGeminiStream', () => {
.mockReturnValue(contentGeneratorConfig),
getMaxSessionTurns: vi.fn(() => 50),
getArenaAgentClient: vi.fn(() => null),
isCronDisabled: vi.fn(() => true),
getCronScheduler: vi.fn(() => null),
} as unknown as Config;
mockOnDebugMessage = vi.fn();
mockHandleSlashCommand = vi.fn().mockResolvedValue(false);