(root: string, specs: TestSpecification[])
| 13 | } |
| 14 | |
| 15 | public async populateStats(root: string, specs: TestSpecification[]): Promise<void> { |
| 16 | const promises = specs.map((spec) => { |
| 17 | const key = `${spec.project.name}:${relative(root, spec.moduleId)}` |
| 18 | return this.updateStats(spec.moduleId, key) |
| 19 | }) |
| 20 | await Promise.all(promises) |
| 21 | } |
| 22 | |
| 23 | public async updateStats(fsPath: string, key: string): Promise<void> { |
| 24 | if (!fs.existsSync(fsPath)) { |
no test coverage detected