({ status } = {})
| 33 | } |
| 34 | |
| 35 | export function gotMock({ status } = {}) { |
| 36 | return jest.fn(async () => { |
| 37 | if (status < 200 || status >= 400) { |
| 38 | throw new Error({ |
| 39 | status, |
| 40 | }) |
| 41 | } |
| 42 | return new Error({ |
| 43 | status, |
| 44 | }) |
| 45 | }) |
| 46 | } |
| 47 | |
| 48 | export function uploadArtifactMock() { |
| 49 | return jest.fn() |
nothing calls this directly
no outgoing calls
no test coverage detected