Skip to content

Commit b9ce218

Browse files
committed
fix: do not try to read final coverage if file does not exist
1 parent 2ce2d90 commit b9ce218

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

task.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ function saveCoverage(coverage) {
4545

4646
function maybePrintFinalCoverageFiles(folder) {
4747
const jsonReportFilename = join(folder, 'coverage-final.json')
48-
if (!existsSync) {
48+
if (!existsSync(jsonReportFilename)) {
4949
debug('Did not find final coverage file %s', jsonReportFilename)
5050
return
5151
}

0 commit comments

Comments
 (0)