Skip to content

Commit

Permalink
Fix ArtifactUploader errors
Browse files Browse the repository at this point in the history
  • Loading branch information
ncipollo committed Jan 12, 2025
1 parent e1e1013 commit 8b72352
Show file tree
Hide file tree
Showing 4 changed files with 6,553 additions and 5,347 deletions.
6 changes: 4 additions & 2 deletions __tests__/ArtifactUploader.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,16 @@ const listArtifactsMock = jest.fn()
const uploadMock = jest.fn()

jest.mock('fs', () => {
const originalFs = jest.requireActual('fs');
return {
...originalFs,
promises: {},
createReadStream: () => fakeReadStream,
statSync: () => {
return {size: contentLength}
return {size: contentLength};
}
};
})
});

describe('ArtifactUploader', () => {
beforeEach(() => {
Expand Down
Loading

0 comments on commit 8b72352

Please sign in to comment.