Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
vmjoseph committed Apr 9, 2024
1 parent 61d6acd commit 4fc93ec
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/artifact/__tests__/upload-artifact.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(() => {
Expand Down Expand Up @@ -431,6 +430,7 @@ describe('upload-artifact', () => {
}
)

jest.mock('fs')
const uploadResp = uploadArtifact(
'test-artifact',
[
Expand Down
3 changes: 2 additions & 1 deletion packages/artifact/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions packages/artifact/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@
"archiver": "^7.0.1",
"crypto": "^1.0.1",
"jwt-decode": "^3.1.2",
"mock-fs": "^5.2.0",
"twirp-ts": "^2.5.0",
"unzip-stream": "^0.3.1"
},
Expand All @@ -61,6 +60,7 @@
"@types/unzip-stream": "^0.3.4",
"typedoc": "^0.25.4",
"typedoc-plugin-markdown": "^3.17.1",
"mock-fs": "^5.2.0",
"typescript": "^5.2.2"
}
}
}

0 comments on commit 4fc93ec

Please sign in to comment.