Skip to content

chore(lint): cover select slot exception and drop dead branch - #274

Open
cursor[bot] wants to merge 1 commit into
mainfrom
topic/upkeep/coverage/slots-nve-select
Open

chore(lint): cover select slot exception and drop dead branch#274
cursor[bot] wants to merge 1 commit into
mainfrom
topic/upkeep/coverage/slots-nve-select

Conversation

@cursor

@cursor cursor Bot commented Sep 3, 2026

Copy link
Copy Markdown

Summary

Coverage upkeep selected by select-task.js.

Rationale (selector): "2 uncovered lines, 88.88% lines and 75% branches, the smallest gap below the 90% threshold"

Target: projects/lint/src/eslint/internals/slots.ts

Measurement

Metric Before After
lines 16/18 (88.88%) 15/15 (100%)
branches 9/12 (75%) 8/8 (100%)

Changes:

  • Tests hasSlot('nve-select', …) so the documented exception path is exercised.
  • Deletes the tagName === 'default' && hasUnnamedSlot recommendation branch. No element is named default, so that assignment was unreachable with current metadata.

API

No public API changed. Exported function names, signatures, and return types are unchanged. No custom element tags, properties, attributes, slots, events, CSS custom properties, or CSS parts were edited.

Left alone

  • Other lint internals (hasDefaultSlot, isKnownElement) already at 100% via rule tests.
  • No suppression files, dependencies, or visual baselines.

Validation

  • projects/lint: lint pass; test 416 passed; test:coverage refreshed.
  • test:types, test:axe, test:ssr, test:lighthouse, test:visual are not defined for @nvidia-elements/lint.
  • Root mise exec -- pnpm run ci pass; git diff --check clean on the committed files.
Open in Web View Automation 

Adds hasSlot coverage for the nve-select exception and removes the
unreachable tagName === 'default' recommendation branch. Line coverage
rises from 88.88% to 100% and branch coverage from 75% to 100%. No
public API change.

Signed-off-by: Cursor Agent <cursoragent@cursor.com>
@coryrylan coryrylan added the upkeep label Sep 3, 2026 — with Cursor
@cursor
cursor Bot marked this pull request as ready for review September 3, 2026 06:06
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