Skip to content

chore(core): cover duplicate package version audit log - #227

Merged
coryrylan merged 1 commit into
mainfrom
upkeep/coverage/audit-logs-duplicate-version-warning
Aug 19, 2026
Merged

chore(core): cover duplicate package version audit log#227
coryrylan merged 1 commit into
mainfrom
upkeep/coverage/audit-logs-duplicate-version-warning

Conversation

@cursor

@cursor cursor Bot commented Aug 19, 2026

Copy link
Copy Markdown

Upkeep

Task: coverage
Target: projects/core/src/internal/utils/audit-logs.ts
Rationale: "1 uncovered lines, 88.88% lines and 100% branches, the smallest gap below the 90% threshold"

Measurement

Metric Before After
Lines 88.88% (8/9) 100% (9/9)
Functions 87.5% (7/8) 100% (8/8)
Branches 100% 100%

Added a unit test for getDuplicatePackageVersionWarning, the only uncovered helper in the file.

Guarantees

  • No public API change
  • No behavior change (tests only)
  • Diff is 9 lines in one file

Left alone

  • Other audit-log helpers (already covered)
  • Production audit-logs.ts source

Verification

  • projects/core: lint, test, test:types, test:axe, test:ssr, test:lighthouse, test:visual — passed
  • Local root pnpm run ci still fails styles typography visuals under CI=true (font glyph drift vs committed baselines); GitHub ci on main is green for the same tests — baselines not rewritten
Open in Web View Automation 

Adds a unit test for getDuplicatePackageVersionWarning, raising
audit-logs.ts line coverage from 88.88% to 100%. No behavior change.

Signed-off-by: Cursor Agent <cursoragent@cursor.com>
@cursor
cursor Bot force-pushed the upkeep/coverage/audit-logs-duplicate-version-warning branch from d6b44f1 to 7b29666 Compare August 19, 2026 06:24
@coryrylan
coryrylan marked this pull request as ready for review August 19, 2026 13:45
@coryrylan
coryrylan self-requested a review August 19, 2026 13:45
@coryrylan
coryrylan merged commit 4d93214 into main Aug 19, 2026
15 checks passed
@coryrylan
coryrylan deleted the upkeep/coverage/audit-logs-duplicate-version-warning branch August 19, 2026 13:46
@coryrylan

Copy link
Copy Markdown
Collaborator

🎉 This issue has been resolved in version 2.3.2 🎉

Changelog

@coryrylan

Copy link
Copy Markdown
Collaborator

🎉 This issue has been resolved in version 2.0.1 🎉

Changelog

@coryrylan

Copy link
Copy Markdown
Collaborator

🎉 This issue has been resolved in version 2.1.3 🎉

Changelog

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