mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-04-29 20:20:57 +00:00
* test: add tests for confirmation-bus, prompt-registry, and cli/core modules Add 42 new tests covering previously untested core modules: - MessageBus: publish, subscribe/unsubscribe, request-response pattern (13 tests) - PromptRegistry: register, dedup, query by server, clear, remove (11 tests) - performInitialAuth: success, failure, no authType cases (3 tests) - validateTheme: found, not found, no config cases (4 tests) - initializeApp: i18n, auth, theme, IDE mode, auth dialog logic (11 tests) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * fix: improve test quality - copyright headers, env safety, cleanup - Fix copyright headers from Google LLC to Qwen Code in all 5 test files - Use vi.stubEnv() instead of manual process.env mutation in initializer test - Add removeAllListeners() cleanup in message-bus debug test - Add void prefix to un-awaited publish() calls in message-bus test - Verify invoke reference preserved after prompt rename in prompt-registry test Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * test(message-bus): add AbortSignal coverage for request() Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| src | ||
| index.ts | ||
| package.json | ||
| test-setup.ts | ||
| tsconfig.json | ||
| vitest.config.ts | ||