mirror of
https://github.com/lobehub/lobehub.git
synced 2026-03-27 13:29:15 +07:00
* ✅ test(desktop): improve test coverage for multiple modules Add comprehensive unit tests for desktop app modules to improve overall test coverage from 29% toward 60%+: - Preload Scripts: routeInterceptor, invoke, streamer, electronApi (49 tests) - Menu System: macOS, windows, linux, BaseMenuPlatform (108 tests) - Core UI (Tray): Tray, TrayManager, MenuManager (78 tests) - Services: fileSearchSrv (21 tests) - Utilities: file-system, logger (25 tests) Total: 281 new test cases covering critical desktop functionality. Closes LOBE-1215, LOBE-1216, LOBE-1217, LOBE-1218, LOBE-1219 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> * 🐛 fix(desktop): update test assertion to support co-located test files The integration test for file search was failing because it expected all test files to be in __tests__ directories, but some test files are now co-located with their source files (e.g., src/preload/*.test.ts). Updated the assertion to accept both patterns. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> * 📦 chore(desktop): add happy-dom to devDependencies The routeInterceptor.test.ts uses @vitest-environment happy-dom for browser API testing. Added happy-dom to desktop package devDependencies to ensure CI can find the package. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> --------- Co-authored-by: Claude <noreply@anthropic.com>