Commit Graph

1 Commits

Author SHA1 Message Date
beads/crew/emma
46f72ed18c test(sync): add tests for pre-sync validation hook (bd-nv4g)
Add comprehensive tests for validateOpenIssuesForSync():
- ModeNone: validation skipped when config is "none"
- ModeEmpty: validation skipped for empty config (backwards compat)
- ModeWarn: sync proceeds with warnings for invalid issues
- ModeError: sync blocked with error for invalid issues
- NoWarnings: valid issues pass validation
- SkipsClosedIssues: closed issues not validated
- ChoreHasNoRequirements: chore type has no required sections

The pre-sync validation hook was already implemented as part of bd-t7jq.
This commit adds the missing test coverage.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-02 00:05:12 -08:00