Skip to content

chore(lint): cover remaining slot-value rule branches - #235

Merged
coryrylan merged 1 commit into
mainfrom
upkeep/coverage/unexpected-slot-value
Aug 24, 2026
Merged

chore(lint): cover remaining slot-value rule branches#235
coryrylan merged 1 commit into
mainfrom
upkeep/coverage/unexpected-slot-value

Conversation

@cursor

@cursor cursor Bot commented Aug 22, 2026

Copy link
Copy Markdown

Selected task

coverageprojects/lint/src/eslint/rules/no-unexpected-slot-value.ts

Selector rationale: "1 uncovered lines, 95% lines and 88% branches, the smallest gap below the 90% threshold"

Measurement

Lines Branches
Before 95% (19/20) 88% (22/25)
After 100% (20/20) 100% (25/25)

Added two cases to the existing no-unexpected-slot-value.test.ts:

  • unexpected slot on nve-divider (no recommended alternative, empty suggestions)
  • unquoted slot=icon on nve-badge (replace suggestion uses the missing-wrapper quote fallbacks)

Public API

No public API changed. Production rule source is untouched.

Left alone

  • No other lint rules or slot helpers
  • No visual baseline updates (environment LFS/visual dirt is unstaged)
  • projects/lint has no test:types, test:axe, test:ssr, test:lighthouse, or test:visual scripts

Verification

  • projects/lint: lint and test pass (406 tests)
  • Root mise exec -- pnpm run ci green after the change
Open in Web View Automation 

Adds unit tests for unexpected slots with no alternative and
unquoted slot attributes, raising line and branch coverage to 100%.

Signed-off-by: Cursor Agent <cursoragent@cursor.com>
@coryrylan
coryrylan marked this pull request as ready for review August 24, 2026 02:11
@coryrylan
coryrylan merged commit eb8eb7a into main Aug 24, 2026
15 checks passed
@coryrylan
coryrylan deleted the upkeep/coverage/unexpected-slot-value branch August 24, 2026 02:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants