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

@ -144,6 +144,8 @@ describe('runNonInteractive', () => {
}),
getExperimentalZedIntegration: vi.fn().mockReturnValue(false),
isInteractive: vi.fn().mockReturnValue(false),
isCronDisabled: vi.fn().mockReturnValue(true),
getCronScheduler: vi.fn().mockReturnValue(null),
} as unknown as Config;
mockSettings = {