Skip to content

chore(lint): cover valid package.json paths in library-dependencies rule - #236

Draft
cursor[bot] wants to merge 1 commit into
mainfrom
upkeep/coverage/library-dependencies-package-json
Draft

chore(lint): cover valid package.json paths in library-dependencies rule#236
cursor[bot] wants to merge 1 commit into
mainfrom
upkeep/coverage/library-dependencies-package-json

Conversation

@cursor

@cursor cursor Bot commented Aug 24, 2026

Copy link
Copy Markdown

Selected task

coverage for projects/lint/src/eslint/rules/no-unexpected-library-dependencies.ts.

Selector rationale: 1 uncovered lines, 96.15% lines and 87.09% branches, the smallest gap below the 90% threshold.

Before / after

Metric Before After
Lines 96.15% (25/26) 100% (26/26)
Branches 87.09% (27/31) 100% (31/31)
Statements 96.55% (28/29) 100% (29/29)

Valid RuleTester cases previously omitted filename: 'package.json', so checkPeerDependencies never returned success. Tests now pass that filename (and one non-package.json skip case).

Public API

No public API changed. Production rule code is untouched.

Left alone

  • Invalid cases already covered type/missing/pinned reports.
  • projects/lint has no test:types, test:axe, test:ssr, test:lighthouse, or test:visual scripts.
  • Visual LFS dirty files and generated metadata JSON were not staged.
Open in Web View Automation 

Adds filename-aware valid cases so checkPeerDependencies success
paths are exercised, raising line coverage from 96.15% to 100% and
branch coverage from 87.09% to 100%. No behavior change.

Signed-off-by: Cursor Agent <cursoragent@cursor.com>
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