Skip to content

Add missing unit tests for core modules#50

Merged
DeDuckProject merged 2 commits intomainfrom
claude/add-unit-tests-ohwMG
Mar 15, 2026
Merged

Add missing unit tests for core modules#50
DeDuckProject merged 2 commits intomainfrom
claude/add-unit-tests-ohwMG

Conversation

@DeDuckProject
Copy link
Owner

Add 7 new test files covering previously untested modules:

  • change-summarizer: LLM response parsing, diff truncation, prompt construction
  • script-generator: retry logic, general vs specific prompts, markdown fence stripping
  • schema: Zod schema validation for all config types, defaults, edge cases
  • defaults: default config value assertions
  • github-comment: PR comment body construction, file truncation, media sections
  • pipeline: full pipeline orchestration with mocks, fallback to screenshots
  • post-processor: FFmpeg conversion modes, GIF palette method, ffmpeg resolution

Test count: 96 → 150 (54 new tests)

https://claude.ai/code/session_01PAVFqsnf36BamyXEiwS8DU

claude added 2 commits March 14, 2026 23:55
Add 7 new test files covering previously untested modules:
- change-summarizer: LLM response parsing, diff truncation, prompt construction
- script-generator: retry logic, general vs specific prompts, markdown fence stripping
- schema: Zod schema validation for all config types, defaults, edge cases
- defaults: default config value assertions
- github-comment: PR comment body construction, file truncation, media sections
- pipeline: full pipeline orchestration with mocks, fallback to screenshots
- post-processor: FFmpeg conversion modes, GIF palette method, ffmpeg resolution

Test count: 96 → 150 (54 new tests)

https://claude.ai/code/session_01PAVFqsnf36BamyXEiwS8DU
- Export buildCommentBody from github-comment.ts so tests can import it
  directly instead of reimplementing the function
- Rewrite github-comment.test.ts to import and test the real function
- Add "Diff truncation" section to README documenting the 8k/10k char
  limits in the change summarizer and script generator stages

https://claude.ai/code/session_01PAVFqsnf36BamyXEiwS8DU
@DeDuckProject DeDuckProject merged commit cc374c8 into main Mar 15, 2026
3 checks passed
@DeDuckProject DeDuckProject deleted the claude/add-unit-tests-ohwMG branch March 15, 2026 20:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants