Skip to content

[codex] add template-generator unit tests#157

Merged
Marve10s merged 2 commits intomainfrom
codex/template-generator-unit-tests
Apr 16, 2026
Merged

[codex] add template-generator unit tests#157
Marve10s merged 2 commits intomainfrom
codex/template-generator-unit-tests

Conversation

@Marve10s
Copy link
Copy Markdown
Owner

What changed

  • add a dedicated bun test harness for packages/template-generator, including test, test:watch, and typecheck:test scripts
  • add shared config, VFS, and template fixtures for package-local unit tests
  • add coverage for core template processing, dependency processors, template handlers, and post-processing behavior
  • document the package test TypeScript scope gotcha in AGENTS.md

Why

packages/template-generator did not have package-local unit coverage for several high-risk branches, and the package tsconfig only covered src/**/*, so tests needed a dedicated TypeScript entrypoint to be checked reliably.

Impact

This gives the generator package a fast local regression suite and makes future option/template changes easier to validate without relying only on broader release lanes.

Validation

  • ~/.bun/bin/bun run typecheck:test
  • ~/.bun/bin/bun test
  • ~/.bun/bin/bun test --coverage
  • ~/.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 Preview Apr 16, 2026 10:21am

@github-actions github-actions bot added size:XS 0-9 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
@Marve10s Marve10s force-pushed the codex/template-generator-unit-tests branch from 4ae5fa9 to 61dddb7 Compare April 16, 2026 10:17
@github-actions github-actions bot added size:S 10-29 effective changed lines (test files excluded in mixed PRs). and removed size:XS 0-9 effective changed lines (test files excluded in mixed PRs). labels Apr 16, 2026
@Marve10s Marve10s marked this pull request as ready for review April 16, 2026 10:24
@Marve10s Marve10s merged commit 289226b into main Apr 16, 2026
23 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:S 10-29 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