Skip to content

Commit 1a3de08

Browse files
committed
change the icon for files without any statements
1 parent e233b34 commit 1a3de08

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

task.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,13 @@ function maybePrintFinalCoverageFiles(folder) {
6363
}
6464
})
6565

66+
const hasStatements = totalStatements > 0
6667
const allCovered = coveredStatements === totalStatements
68+
const coverageStatus = hasStatements ? (allCovered ? '✅' : '⚠️') : '❓'
69+
6770
debug(
6871
'%s %s statements covered %d/%d',
69-
allCovered ? '✅' : '⚠️',
72+
coverageStatus,
7073
key,
7174
coveredStatements,
7275
totalStatements

0 commit comments

Comments
 (0)