mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-04-29 04:00:36 +00:00
feat(core,cli): migrate console.debug to debugLogger (M3 Phase 1-3)
This commit is contained in:
parent
ba2824b0b0
commit
3959b73bce
63 changed files with 554 additions and 538 deletions
|
|
@ -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', () => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue