From 6ca7222ab4296070f22e22b33137e56c56dfddeb Mon Sep 17 00:00:00 2001 From: Azlam <43767972+azlam-abdulsalam@users.noreply.github.com> Date: Wed, 20 Sep 2023 14:46:09 +1000 Subject: [PATCH] fix(apextests): incorrect usage of jsonOutput Ensure jsonOutput is marked as undefined instead of empty object to meet TS type safety checks --- packages/core/src/apextest/TriggerApexTests.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/core/src/apextest/TriggerApexTests.ts b/packages/core/src/apextest/TriggerApexTests.ts index c2d842ce1..96075823d 100644 --- a/packages/core/src/apextest/TriggerApexTests.ts +++ b/packages/core/src/apextest/TriggerApexTests.ts @@ -135,7 +135,7 @@ export default class TriggerApexTests { testResult = this.removeDuplicateTestListing(testResult); //Write Test Results to file - let jsonOutput = {}; + let jsonOutput = undefined; try { jsonOutput = this.writeTestOutput(testResult);