Skip to content

[codex] expand template-generator coverage#158

Draft
Marve10s wants to merge 1 commit intocodex/template-generator-unit-testsfrom
codex/template-generator-coverage-followup
Draft

[codex] expand template-generator coverage#158
Marve10s wants to merge 1 commit intocodex/template-generator-unit-testsfrom
codex/template-generator-coverage-followup

Conversation

@Marve10s
Copy link
Copy Markdown
Owner

What changed

  • add another tranche of focused packages/template-generator tests in the highest-yield low-coverage files
  • expand coverage for db-deps, api-deps, file-upload-deps, env-vars, and template-handlers/auth
  • keep the follow-up scoped to tests only so it stacks cleanly on the first PR

Coverage impact

Package-local Bun coverage moved from 87.28% to 89.67% line coverage overall.

Notable source-file improvements from the follow-up pass:

  • src/processors/db-deps.ts: 52.75% -> 99.26%
  • src/template-handlers/auth.ts: 47.04% -> 97.39%
  • src/processors/api-deps.ts: 64.09% -> 86.35%
  • src/processors/file-upload-deps.ts: 66.54% -> 80.31%
  • src/processors/env-vars.ts: 76.27% -> 84.46%

The remaining all-files gap is still partially dragged down by Bun counting executed packages/types/dist files in the aggregate report.

Why

The first PR put the test harness and core package coverage in place. This follow-up pushes deeper into the branchy processor and handler code paths that were still under-covered.

Validation

  • ~/.bun/bin/bun test --coverage (package-local)
  • ~/.bun/bin/bun run test --filter=@better-fullstack/template-generator

@vercel
Copy link
Copy Markdown

vercel bot commented Apr 16, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated (UTC)
better-fullstack-web Ignored Ignored Apr 16, 2026 3:36pm

@github-actions github-actions bot added size:XL 500-999 effective changed lines (test files excluded in mixed PRs). vouch:trusted PR author is trusted by repo permissions or the VOUCHED list. labels Apr 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:XL 500-999 effective changed lines (test files excluded in mixed PRs). vouch:trusted PR author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant