* Reports code coverage data to an aggregating endpoint. * @return {Promise }
()
| 355 | * @return {Promise<void>} |
| 356 | */ |
| 357 | async function reportCoverage() { |
| 358 | const coverage = istanbulMiddleware.getCoverageObject(); |
| 359 | await fetch(`https://${HOST}:${PORT}${COV_REPORT_PATH}`, { |
| 360 | method: 'POST', |
| 361 | body: JSON.stringify(coverage), |
| 362 | headers: {'Content-type': 'application/json'}, |
| 363 | }); |
| 364 | } |
| 365 | |
| 366 | /** |
| 367 | * Returns a wrapped version of Mocha's describe(), it() and only() methods |
no test coverage detected