This commit is contained in:
Vallie Joseph committed 2024-04-09 19:01:54 +00:00
1 parent e856ad08b8
commit e455efe4f9
3 files changed
+5 -4

No files matched your search

+1 -1
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',
[