You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Suppress debug output during test runs
Clean up test output by preventing debug logging from cluttering
test results while maintaining full debug functionality in production.
Changes:
- WebSocketConnection: Only call printOutput() in non-test environments
- test/shared/setup.mjs: Disable debug module by default during tests
- test/unit/core/utils.test.mjs: Properly cleanup debug state in afterEach
- test/unit/core/utils-enhanced.test.mjs: Fix test assertions and cleanup
- vitest.config.mjs: Add reporter configuration
Benefits:
- Clean, readable test output without debug noise
- Maintains full debug functionality in production
- Tests that specifically need debug can enable it explicitly
- All 632 tests passing with zero debug output
Before: Tests showed verbose socket events, errors, and debug messages
After: Clean test output showing only test results
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
* Address Gemini code review comments
Improvements based on Gemini's medium-priority feedback:
1. Centralize debug module imports:
- test/shared/setup.mjs: Use import at top instead of require in hooks
- test/unit/core/utils.test.mjs: Add import debug at top, reuse in hooks
- test/unit/core/utils-enhanced.test.mjs: Add import debug at top, reuse in hooks
2. Clean up redundant configuration:
- vitest.config.mjs: Remove redundant silent and reporters defaults
Benefits:
- Consistent ES module import style across all test files
- DRY principle - import once, reuse throughout the file
- Cleaner vitest configuration without unnecessary defaults
All 632 tests still passing with zero debug output.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
---------
Co-authored-by: Claude Code <claude-code@anthropic.com>
Co-authored-by: Claude <noreply@anthropic.com>
0 commit comments