Skip to content

Commit b446896

Browse files
committed
add safety check for Details property
1 parent 8fd281e commit b446896

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/testResultsSummary.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,7 @@ function processTestCase(
397397
Name: testCaseName,
398398
Duration: Number(testResult.Duration.toFixed(2)),
399399
Status: determineTestStatus(testResult),
400-
Diagnostics: processDiagnostics(testResult.Details.DiagnosticRecord),
400+
Diagnostics: processDiagnostics(testResult.Details?.DiagnosticRecord),
401401
};
402402

403403
testFile.TestCases.push(testCase);

0 commit comments

Comments
 (0)