Skip to content

Commit

Permalink
fix: exit code when reporter file is not provided
Browse files Browse the repository at this point in the history
  • Loading branch information
FrancescoBorzi authored and Jonathan Ginsburg committed Jun 23, 2023
1 parent 06fb9ad commit 1388186
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/reporter.js
Expand Up @@ -262,7 +262,7 @@ var CoverageReporter = function (rootConfig, helper, logger, emitter) {

if (!toDisk && reporterConfig.file === undefined) {
report.execute(context)
return
return results
}

const mkdirIfNotExists = promisify(helper.mkdirIfNotExists)
Expand Down

0 comments on commit 1388186

Please sign in to comment.