Repository navigation
test(rules): site clean-run awaits async rules and applies option defaults - #2415
Merged
Merged
Conversation
…aults #2342 Signed-off-by: nc9 <[email protected]>
longshore-nc9
Bot
force-pushed
the
fix/2342-site-clean-run
branch
from
November 26, 2026 17:33
edf1252 to
3401fad
Compare
nc9
marked this pull request as ready for review
November 26, 2026 17:58
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.jsonshrinks 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 rulesgives 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).