chore: some improvements#10050
Conversation
|
WalkthroughThis PR addresses several ARIA-related housekeeping items: fixing typos in metadata build scripts ( Possibly related PRs
Suggested labels
Suggested reviewers
🚥 Pre-merge checks | ✅ 1 | ❌ 1❌ Failed checks (1 inconclusive)
✅ Passed checks (1 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In `@crates/biome_js_analyze/src/lint/a11y/use_aria_props_supported_by_role.rs`:
- Around line 80-83: Add snapshot tests covering the new null/undefined
detection behavior introduced in use_aria_props_supported_by_role (the code path
using attribute.as_static_value().is_some_and(|static_value|
static_value.is_null_or_undefined())). Create tests in
tests/specs/<group>/use_aria_props_supported_by_role/ with both valid and
invalid snapshot files that explicitly include elements where ARIA attributes
are set to null and undefined (not just string literals) so the rule's changed
behavior is asserted; name the snapshots to show null vs undefined cases and run
the existing test harness to record expected outputs.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
Run ID: 41347f1f-78bd-4670-acb1-a8f9281ca9ad
⛔ Files ignored due to path filters (1)
crates/biome_js_analyze/tests/specs/a11y/noInteractiveElementToNoninteractiveRole/valid.jsx.snapis excluded by!**/*.snapand included by**
📒 Files selected for processing (4)
crates/biome_aria_metadata/build.rscrates/biome_js_analyze/src/lint/a11y/use_aria_props_supported_by_role.rscrates/biome_js_analyze/tests/specs/a11y/noInteractiveElementToNoninteractiveRole/valid.jsxpackages/aria-data/README.md
💤 Files with no reviewable changes (1)
- crates/biome_js_analyze/tests/specs/a11y/noInteractiveElementToNoninteractiveRole/valid.jsx
Merging this PR will not alter performance
Comparing Footnotes
|
Summary
Some typos, use helper functions & remove test-case which isn't used and shouldn't be in valid to begin with
Test Plan
Docs