mirror of
https://github.com/QwenLM/qwen-code.git
synced 2025-12-20 16:57:46 +00:00
feat: implement usage stats logging with telemetry refactoring
This commit is contained in:
@@ -8,3 +8,9 @@ import { setSimulate429 } from './src/utils/testUtils.js';
|
||||
|
||||
// Disable 429 simulation globally for all tests
|
||||
setSimulate429(false);
|
||||
|
||||
// Some dependencies (e.g., undici) expect a global File constructor in Node.
|
||||
// Provide a minimal shim for test environment if missing.
|
||||
if (typeof (globalThis as unknown as { File?: unknown }).File === 'undefined') {
|
||||
(globalThis as unknown as { File: unknown }).File = class {} as unknown;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user