We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 887161c commit a9c4cf9Copy full SHA for a9c4cf9
1 file changed
scripts/check-coverage.mjs
@@ -64,9 +64,7 @@ for (const [absPath, fileSummary] of Object.entries(summary)) {
64
// Longest-prefix match: iterate from most specific to least specific.
65
// DIRECTORY_THRESHOLDS is already ordered with nested paths before parents
66
// for tui/hooks and tui/components, but we sort by length to be safe.
67
- const match = [...dirStats]
68
- .sort((a, b) => b.prefix.length - a.prefix.length)
69
- .find(d => rel.startsWith(d.prefix));
+ const match = [...dirStats].sort((a, b) => b.prefix.length - a.prefix.length).find(d => rel.startsWith(d.prefix));
70
if (!match) continue;
71
72
match.total += fileSummary.lines.total;
0 commit comments