From 13881868dc9c488099ec885e1fde134f4e3dfb11 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Francesco=20Borz=C3=AC?= Date: Thu, 8 Dec 2022 12:51:22 +0100 Subject: [PATCH] fix: exit code when reporter file is not provided --- lib/reporter.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/reporter.js b/lib/reporter.js index a8d8f58..b062af6 100644 --- a/lib/reporter.js +++ b/lib/reporter.js @@ -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)