• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

kahwee / bunki / 22889652356

10 Mar 2026 06:11AM UTC coverage: 92.249% (+9.4%) from 82.822%
22889652356

push

github

kahwee
refactor: DRY improvements, type safety, and test coverage

Source changes:
- Remove `any` types: CSSConfig in assets.ts, business/data params in
  validators.ts, error catch in markdown-utils.ts
- Remove unused generic T from createPagination (only uses .length)
- Extract generateOptionalPage() helper in pages.ts to DRY 404/map
  template error handling
- Extract logErrorGroup() in parser.ts to DRY four repeated error
  reporting blocks
- Replace fs import in server.ts with Bun-native isDirectory()

Tests (+75 tests, 429 → 504):
- Add test/utils/build-cache.test.ts (30 tests, 47%→100% func coverage)
- Add test/utils/change-detector.test.ts (20 tests, 0%→100% coverage)
- Add test/utils/schema-factory.test.ts (8 tests, 50%→100% func coverage)
- Extend parser.test.ts: file conflicts, strict mode, error reporting paths
- Extend markdown-utils.test.ts: tag validation, YAML error handling
Overall line coverage: 86% → 94%

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

88 of 92 new or added lines in 7 files covered. (95.65%)

2761 of 2993 relevant lines covered (92.25%)

37.21 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

97.78
/src/utils/markdown-utils.ts


Source Not Available

STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc