feat(core,cli): migrate console.debug to debugLogger (M3 Phase 1-3)

This commit is contained in:
tanzhenxin 2026-01-25 20:57:25 +08:00
parent ba2824b0b0
commit 3959b73bce
63 changed files with 554 additions and 538 deletions

View file

@ -301,11 +301,8 @@ describe('extractUsageFromGeminiClient', () => {
throw new Error('Test error');
}),
};
const consoleSpy = vi.spyOn(console, 'debug').mockImplementation(() => {});
const result = extractUsageFromGeminiClient(client);
expect(result).toBeUndefined();
expect(consoleSpy).toHaveBeenCalled();
consoleSpy.mockRestore();
});
it('should skip responses without usageMetadata', () => {