diff --git a/lib/internal/test_runner/utils.js b/lib/internal/test_runner/utils.js index d637e97f0d4de9..c21bc13c60543d 100644 --- a/lib/internal/test_runner/utils.js +++ b/lib/internal/test_runner/utils.js @@ -420,7 +420,7 @@ function getCoverageReport(pad, summary, symbol, color, table) { ArrayPrototypeForEach(ObjectKeys(summary.minimumCoverage), (key) => { const { actual, expected, status } = summary.minimumCoverage[key]; if (!status) { - report += `${red}${pad}${prefix}minimum coverage failed for ${key}. expected: ${expected}% | actual: ${actual}%\n${color}`; + report += `${red}${pad}${prefix}minimum coverage failed for ${key}. expected: ${expected}% | actual: ${NumberPrototypeToFixed(actual, 2)}%\n${color}`; } });