Misaka
2e102d8ab3
refactor(tests): Move ConfigManager and Update tests to proper locations
## Summary:
- Create tests/unit/config-manager.test.ts (6 tests)
- Move ConfigManager tests from logger.test.ts to dedicated file
- Create tests/integration/update-workflow.test.ts (3 tests)
- Update skip comments in update-service.test.ts
- Reduce skipped tests from 8 to 4 (-50%)
## Results:
- Test Files: 42 passed (100%)
- Tests: 325 passed, 4 skipped (98.8% execution)
- Skipped tests reduced: 8 → 4
- Coverage improved: 97.5% → 98.8%
## Architecture Improvements:
- Logger and ConfigManager tests completely separated
- Unit tests vs Integration tests responsibilities clarified
- Mock strategies clearly defined per file
- Skipped tests have clear documentation
## Files Changed:
- NEW: tests/unit/config-manager.test.ts
- NEW: docs/P2_REFACTOR_SUMMARY.md
- NEW: docs/SKIPPED_TESTS_EXPLANATION.md
- MODIFIED: tests/unit/logger.test.ts
- MODIFIED: tests/unit/update-service.test.ts
2026-04-04 19:13:49 +08:00
..
2026-04-04 14:00:48 +08:00
2026-04-03 21:37:59 +08:00
2026-03-21 18:26:13 +08:00
2026-04-04 18:36:38 +08:00
2026-03-21 18:26:13 +08:00
2026-03-21 09:02:45 +08:00
2026-03-18 13:14:09 +08:00
2026-04-04 19:13:49 +08:00
2026-03-04 14:24:16 +08:00
2026-03-07 14:07:08 +08:00
2026-04-04 18:41:19 +08:00
2026-04-04 18:36:38 +08:00
2026-03-01 14:57:38 +08:00
2026-03-08 12:35:00 +08:00
2026-03-08 12:35:00 +08:00
2026-03-01 14:57:38 +08:00
2026-04-04 14:00:48 +08:00
2026-04-04 19:13:49 +08:00
2026-03-01 15:46:01 +08:00
2026-03-08 12:35:00 +08:00
2026-03-21 08:54:35 +08:00
2026-04-04 18:36:38 +08:00
2026-04-04 10:39:06 +08:00
2026-03-16 21:47:13 +08:00
2026-03-21 08:54:35 +08:00
2026-03-01 15:46:01 +08:00
2026-03-21 18:26:13 +08:00
2026-04-04 18:50:43 +08:00
2026-04-04 19:13:49 +08:00
2026-03-21 18:26:13 +08:00
2026-03-20 21:20:28 +08:00
2026-03-21 19:45:19 +08:00
2026-03-21 19:45:19 +08:00