(status: number, body: string)
| 25 | } |
| 26 | |
| 27 | function replying(status: number, body: string): typeof globalThis.fetch { |
| 28 | return (() => Promise.resolve({ |
| 29 | ok: status >= 200 && status < 300, |
| 30 | status, |
| 31 | statusText: '', |
| 32 | text: () => Promise.resolve(body), |
| 33 | })) as unknown as typeof globalThis.fetch; |
| 34 | } |
| 35 | |
| 36 | describe('reportError', () => { |
| 37 | it('reaches every listener, survives one that throws, and is silent without any', () => { |
no outgoing calls
no test coverage detected