( diff: ApiDiff, annotations: ReadonlyMap<string, MigrationAnnotation>, importMapSections: string )
| 433 | } |
| 434 | |
| 435 | export const unannotatedModuleIds = ( |
| 436 | diff: ApiDiff, |
| 437 | annotations: ReadonlyMap<string, MigrationAnnotation>, |
| 438 | importMapSections: string |
| 439 | ): ReadonlyArray<string> => { |
| 440 | const replacements = importMapReplacements(importMapSections) |
| 441 | return removedModules(diff).filter((module) => |
| 442 | !annotations.has(module) && |
| 443 | !replacements.has(module) && |
| 444 | ![...annotations.keys()].some((id) => id.startsWith(`${module}#`)) |
| 445 | ) |
| 446 | } |
| 447 | |
| 448 | export const renderMissingAnnotations = ( |
| 449 | diff: ApiDiff, |
no test coverage detected