Skip to content

Commit 6df04f4

Browse files
test: ensure no error is set when no coverage files are found (#13)
1 parent 1e32e2e commit 6df04f4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/__tests__/index.test.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,8 @@ describe("index (run)", () => {
168168
);
169169
expect(mockCore.setOutput).toHaveBeenCalledWith("uploaded-files", 0);
170170
expect(mockUploadCoverageFiles).not.toHaveBeenCalled();
171+
// Explicitly verify that no error is set, ensuring the workflow doesn't fail
172+
expect(mockCore.setFailed).not.toHaveBeenCalled();
171173
});
172174

173175
it("should fail when repository URL cannot be determined", async () => {

0 commit comments

Comments
 (0)