( payload: Record<string, unknown>, )
| 20 | } |
| 21 | |
| 22 | async function postHarnessMessage( |
| 23 | payload: Record<string, unknown>, |
| 24 | ): Promise<void> { |
| 25 | if (!reportUrl) { |
| 26 | return |
| 27 | } |
| 28 | |
| 29 | await fetch(reportUrl, { |
| 30 | method: `POST`, |
| 31 | headers: { |
| 32 | 'content-type': `application/json`, |
| 33 | }, |
| 34 | body: JSON.stringify(payload), |
| 35 | }) |
| 36 | } |
| 37 | |
| 38 | async function reportRunResult(result: { |
| 39 | status: `passed` | `failed` |
no test coverage detected