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

kahwee / bunki / 22291699081
92%

Build:
DEFAULT BRANCH: main
Ran 23 Feb 2026 03:18AM UTC
Jobs 1
Files 28
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

23 Feb 2026 03:18AM UTC coverage: 81.38% (-0.2%) from 81.61%
22291699081

push

github

kahwee
refactor: DRY up codebase with centralized constants and utilities

- Create src/constants.ts for centralized configuration values
  - PAGINATION: page size (10), batch size (10), RSS feed limit (40)
  - FILES: write buffer (1MB), sitemap limits
  - SEO: noindex threshold
  - CACHE: time constants
  - DATE: month names array

- Extract template engine setup to src/utils/template-engine.ts
  - Reduces site-generator.ts constructor from 47 to 11 lines
  - Makes Nunjucks configuration testable and reusable
  - Centralizes date filter logic

- Create src/utils/schema-factory.ts for JSON-LD schema generation
  - Eliminates 64 lines of duplication across tag/year pages
  - Provides generateCollectionSchemas() helper
  - DRY up breadcrumb generation

- Update generators to use constants instead of magic numbers
  - Replace hardcoded 10, 15, 40000, 1000 with semantic constants
  - Improve code readability and maintainability

- Export new utilities from src/index.ts for public API

Impact: -69 lines in core files, +223 lines of reusable utilities
All 427 tests pass, TypeScript compiles without errors

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

127 of 141 new or added lines in 7 files covered. (90.07%)

2417 of 2970 relevant lines covered (81.38%)

32.17 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
6
76.0
src/utils/schema-factory.ts
8
72.41
src/utils/template-engine.ts
Jobs
ID Job ID Ran Files Coverage
1 bunki-tests - 22291699081.1 23 Feb 2026 03:18AM UTC 28
81.38
GitHub Action Run
Source Files on build 22291699081
  • Tree
  • List 28
  • Changed 4
  • Source Changed 4
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #22291699081
  • 0a6d11b8 on github
  • Prev Build on main (#22286551980)
  • Next Build on main (#22291744194)
  • Delete
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