From 1c2cfe56a78b6964a2e99e95a3932b1c85597006 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jens=20R=C3=B8mer=20Hesselbjerg?= Date: Mon, 19 Jan 2026 18:09:20 +0100 Subject: [PATCH] Duplicate dependencies warning message now shows exact number --- src/checks/duplicates.ts | 2 +- test/checks/__snapshots__/duplicates_test.ts.snap | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/checks/duplicates.ts b/src/checks/duplicates.ts index ed1cd7e..80038a5 100644 --- a/src/checks/duplicates.ts +++ b/src/checks/duplicates.ts @@ -126,7 +126,7 @@ export function scanForDuplicates( ? `\n\nšŸ’” To find out what depends on a specific package, run: \`${exampleCommand}\`` : ''; messages.push( - `## āš ļø Duplicate Dependencies (threshold: ${threshold}) + `## āš ļø Duplicate Dependencies (found: ${duplicateRows.length}, threshold: ${threshold}) | šŸ“¦ Package | šŸ“‹ Versions | | --- | --- | diff --git a/test/checks/__snapshots__/duplicates_test.ts.snap b/test/checks/__snapshots__/duplicates_test.ts.snap index 96c0358..f899c29 100644 --- a/test/checks/__snapshots__/duplicates_test.ts.snap +++ b/test/checks/__snapshots__/duplicates_test.ts.snap @@ -2,7 +2,7 @@ exports[`scanForDuplicates > should report duplicates when threshold is exceeded 1`] = ` [ - "## āš ļø Duplicate Dependencies (threshold: 1) + "## āš ļø Duplicate Dependencies (found: 1, threshold: 1) | šŸ“¦ Package | šŸ“‹ Versions | | --- | --- | @@ -14,7 +14,7 @@ exports[`scanForDuplicates > should report duplicates when threshold is exceeded exports[`scanForDuplicates > should truncate long parent paths in the report 1`] = ` [ - "## āš ļø Duplicate Dependencies (threshold: 1) + "## āš ļø Duplicate Dependencies (found: 1, threshold: 1) | šŸ“¦ Package | šŸ“‹ Versions | | --- | --- |