test: fix deprecated Jest matchers for v30

- Replace toThrowError() with toThrow()
- Replace toBeCalledWith() with toHaveBeenCalledWith()
- Update snapshots
This commit is contained in:
Daniel Kennedy
2026-01-30 09:44:37 -05:00
parent 59d7acc324
commit f94d96c596
14 changed files with 44 additions and 44 deletions
@@ -134,7 +134,7 @@ describe('get-artifact', () => {
fixtures.token
)
expect(response).rejects.toThrowError(ArtifactNotFoundError)
expect(response).rejects.toThrow(ArtifactNotFoundError)
})
it('should fail if non-200 response', async () => {
@@ -155,7 +155,7 @@ describe('get-artifact', () => {
fixtures.token
)
expect(response).rejects.toThrowError(InvalidResponseError)
expect(response).rejects.toThrow(InvalidResponseError)
})
})
@@ -223,7 +223,7 @@ describe('get-artifact', () => {
const response = getArtifactInternal(fixtures.artifacts[0].name)
expect(response).rejects.toThrowError(ArtifactNotFoundError)
expect(response).rejects.toThrow(ArtifactNotFoundError)
})
it('should fail if non-200 response', async () => {