This commit is contained in:
Vallie Joseph
2024-04-09 19:01:54 +00:00
parent 61d6acdeb1
commit 4fc93ec115
3 changed files with 5 additions and 4 deletions

View File

@@ -357,7 +357,6 @@ describe('upload-artifact', () => {
it('should throw an error uploading blob chunks get delayed', async () => {
const mockDate = new Date('2020-01-01')
jest.mock('fs')
// Mock fs.createReadStream to return a mock stream
fs.createReadStream = jest.fn().mockImplementation(() => {
@@ -431,6 +430,7 @@ describe('upload-artifact', () => {
}
)
jest.mock('fs')
const uploadResp = uploadArtifact(
'test-artifact',
[