Skip to content

test(rules): site clean-run awaits async rules and applies option defaults - #2415

Merged
nc9 merged 1 commit into
mainfrom
fix/2342-site-clean-run
Nov 26, 2026
Merged

nc9 merged 1 commit into
mainfrom
fix/2342-site-clean-run

Conversation

@longshore-nc9

@longshore-nc9 longshore-nc9 Bot commented Nov 26, 2026

Copy link
Copy Markdown
Contributor

Closes #2342.

The site clean-run test now awaits async rule results under a 3s per-rule timeout. Both clean-run tests parse options through each rule's optionsSchema, via a new helper tests/helpers/rule-options.ts. rule-clean-run-site-empty.json shrinks from 22 rules to 1 (crawl/single-page-site); nothing is added. Declared site rules are still checked with expectDeclaredChecks.

Tests: the two clean-run files pass, bun run scripts/test-suites.ts --run rules gives 13032 pass, 0 fail, and oxfmt check passes on the changed files. The 'new site rule returns no checks' guard is unchanged: the baseline comparison still fails for any rule not listed.

Docs: none. Skill: none. No changelog entry (test-only change).

@longshore-nc9
longshore-nc9 Bot force-pushed the fix/2342-site-clean-run branch from edf1252 to 3401fad Compare November 26, 2026 17:33
@nc9
nc9 marked this pull request as ready for review November 26, 2026 17:58
@nc9
nc9 merged commit cf21fe5 into main Nov 26, 2026
14 checks passed
@nc9
nc9 deleted the fix/2342-site-clean-run branch November 26, 2026 18:55
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.

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

1 participant