Skip to content

test(hooks): add test coverage for plan-format-validator hook#4522

Open
Hungdoan565 wants to merge 2 commits into
code-yeongyu:devfrom
Hungdoan565:test/plan-format-validator-hook-coverage
Open

test(hooks): add test coverage for plan-format-validator hook#4522
Hungdoan565 wants to merge 2 commits into
code-yeongyu:devfrom
Hungdoan565:test/plan-format-validator-hook-coverage

Conversation

@Hungdoan565

@Hungdoan565 Hungdoan565 commented May 26, 2026

Copy link
Copy Markdown
Contributor

Add 11 tests for the plan-format-validator hook covering:

  • Valid plan format passes through
  • Missing required sections detected
  • Malformed markdown handling
  • Disabled hook behavior
  • Non-plan tool calls skipped

Summary by cubic

Add 11 tests for the plan-format-validator hook to confirm plan validation works and warnings show only when they should, covering valid plans, malformed task labels (including Final Verification Wave), Edit vs Write tool filtering, non-plan paths, missing files, pre-existing warnings, no checkboxes, and undefined args. Also sync bun.lock platform binaries (oh-my-opencode-*) to 4.5.1.

Written for commit 059e3f8. Summary will update on new commits. Review in cubic

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.

1 participant