test(session): add isCronEnabled mock to test config

Adds missing isCronEnabled mock function to the test configuration
to support the cron feature implementation.

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
This commit is contained in:
tanzhenxin 2026-03-30 11:17:23 +00:00
parent 1af0ef9a7c
commit dbc86e7672

View file

@ -75,6 +75,7 @@ describe('Session', () => {
getTargetDir: vi.fn().mockReturnValue(process.cwd()),
getDebugMode: vi.fn().mockReturnValue(false),
getAuthType: vi.fn().mockImplementation(() => currentAuthType),
isCronEnabled: vi.fn().mockReturnValue(false),
} as unknown as Config;
mockClient = {