Skip to content

Commit 8b72352

Browse files
committed
Fix ArtifactUploader errors
1 parent e1e1013 commit 8b72352

File tree

4 files changed

+6553
-5347
lines changed

4 files changed

+6553
-5347
lines changed

__tests__/ArtifactUploader.test.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,16 @@ const listArtifactsMock = jest.fn()
1717
const uploadMock = jest.fn()
1818

1919
jest.mock('fs', () => {
20+
const originalFs = jest.requireActual('fs');
2021
return {
22+
...originalFs,
2123
promises: {},
2224
createReadStream: () => fakeReadStream,
2325
statSync: () => {
24-
return {size: contentLength}
26+
return {size: contentLength};
2527
}
2628
};
27-
})
29+
});
2830

2931
describe('ArtifactUploader', () => {
3032
beforeEach(() => {

0 commit comments

Comments
 (0)