Skip to content

Commit 3c45be6

Browse files
committed
refactor: remove enum
1 parent 331b398 commit 3c45be6

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/reporters/testReporter.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
* For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
66
*/
77
import {
8-
ApexTestRunResultStatus,
98
HumanReporter,
109
JUnitReporter,
1110
OutputDirConfig,
@@ -64,7 +63,7 @@ export class TestReporter {
6463
}
6564

6665
try {
67-
if (result.summary && result.summary.outcome === ApexTestRunResultStatus.Failed.toString()) {
66+
if (result.summary && result.summary.outcome === 'Failed') {
6867
process.exitCode = FAILURE_EXIT_CODE;
6968
}
7069
switch (options['result-format']) {

0 commit comments

Comments
 (0)