Skip to content

Commit 2c9194e

Browse files
authored
Handle optional chaining for DiagnosticRecord
1 parent 886bc97 commit 2c9194e

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
@@ -337,7 +337,7 @@ function processTestCase(
337337
Name: testCaseName,
338338
Duration: Number(testResult.Duration.toFixed(2)),
339339
Status: determineTestStatus(testResult),
340-
Diagnostics: processDiagnostics(testResult.Details.DiagnosticRecord),
340+
Diagnostics: processDiagnostics(testResult.Details?.DiagnosticRecord),
341341
};
342342

343343
testFile.TestCases.push(testCase);

0 commit comments

Comments
 (0)