(file: string, sourceMaps: Map<string, any>)
| 368 | } |
| 369 | |
| 370 | async function getTraceMap(file: string, sourceMaps: Map<string, any>) { |
| 371 | const result = sourceMaps.get(file) || await rpc().getBrowserFileSourceMap(file).then((map) => { |
| 372 | sourceMaps.set(file, map) |
| 373 | return map |
| 374 | }) |
| 375 | if (!result) { |
| 376 | return null |
| 377 | } |
| 378 | return new DecodedMap(result as any, file) |
| 379 | } |
| 380 | |
| 381 | async function updateTestFilesLocations(files: File[], sourceMaps: Map<string, any>) { |
| 382 | const promises = files.map(async (file) => { |
no test coverage detected