Fix ArtifactUploader errors

This commit is contained in:
Nick Cipollo
2025-01-11 21:20:00 -05:00
parent e1e10133db
commit 8b72352976
4 changed files with 4147 additions and 2941 deletions

View File

@@ -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(() => {