(name = './coverage/coverage-final.json')
| 116 | * Read coverage report from file system as Istanbul's `CoverageMap` |
| 117 | */ |
| 118 | export async function readCoverageMap(name = './coverage/coverage-final.json') { |
| 119 | const coverageJson = await readCoverageJson(name) |
| 120 | return libCoverage.createCoverageMap(coverageJson) |
| 121 | } |
| 122 | |
| 123 | export function formatSummary(summary: CoverageSummary) { |
| 124 | return (['branches', 'functions', 'lines', 'statements'] as const).reduce((all, current) => ({ |