Skip to content

Commit d98cb2a

Browse files
committed
fix test
1 parent 77f1ab5 commit d98cb2a

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

src/testResultsSummary.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ export function getTestResults(
8989
const filePrefix = `matlabTestResults${actionName}_`;
9090
const fileSuffix = `.json`;
9191

92+
// Find all test result files matching the pattern
9293
let testResultFiles: string[] = [];
9394
try {
9495
testResultFiles = readdirSync(runnerTemp)

src/testResultsSummary.unit.test.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -653,9 +653,7 @@ describe("Error Handling Tests", () => {
653653

654654
try {
655655
const result = testResultsSummary.getTestResults(runnerTemp, "", "");
656-
expect(result).not.toBeNull();
657-
expect(result!.TestSessions.length).toBe(0);
658-
expect(result!.OverallStats.Total).toBe(0);
656+
expect(result).toBeNull();
659657

660658
expect(consoleSpy).toHaveBeenCalledWith(
661659
expect.stringContaining(

0 commit comments

Comments
 (0)