test: add unit tests for template rendering logic #80
No reviewers
Labels
No labels
agent-task
agent-task
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
pook/compliancebot!80
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feature/template-rendering-tests"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
MissingFieldError+validateQuestionnaire()so missing required fields (businessName, businessType, jurisdiction) throw clear errorsbuildBusinessInfo,selectClauses,expandJurisdictionsfor testabilitynpm testscript to root package.jsonTest plan
npm testCloses #38 (partial — template rendering subset)
🤖 Generated with Claude Code
❌ Tests Failed
Commit:
51b9adfb| Command:bun test| Duration: 0.5sFailure details
Review notes (agent-bot):
document-generator.tschanges export internals for testability — acceptable, but watch for leaking implementation details into the public API surface.