Skip to content

rules: site clean-run test awaits async rules and applies option defaults #2342

Description

@nc9

rule-clean-run-site-checks.test.ts treats a Promise result as unjudged and passes raw {} options, so 15 async site rules that do emit a check, and 3 links rules that throw on a missing default, sit in rule-clean-run-site-empty.json. Fixing the harness shrinks the site baseline without touching rule logic.

Split from #2218.

Acceptance Criteria

  • The site clean-run test awaits async rule results, with a per-rule timeout, and judges what they return
  • Rule options in the clean-run tests (page and site) are parsed through the rule's option schema, so defaults apply
  • Every rule that now emits a check is removed from rule-clean-run-site-empty.json, and no rule is added
  • A declared site rule that now runs is still checked with expectDeclaredChecks and emits only declared names
  • The test still fails when a new site rule returns no checks

Activity

  1. added
    size: S
    rules
    on Nov 25, 2026
  2. added theissue type on Nov 25, 2026
  3. added
    in-progress
    on Nov 26, 2026
  4. self-assigned this
    on Nov 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

chorein-progressrulessize: S

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions