(root: string)
| 118 | const byRoot = new Map<string, RouteTable>(); |
| 119 | const shortened: { root: string; path: string; node: Node }[] = []; |
| 120 | const tableAt = (root: string): RouteTable => { |
| 121 | let t = byRoot.get(root); |
| 122 | if (!t) byRoot.set(root, (t = { source: all, exact: new Map(), dynamic: [] })); |
| 123 | return t; |
| 124 | }; |
| 125 | for (const node of all) { |
| 126 | if (!isDestination(node)) continue; |
| 127 | const root = reactRouterRoot(node.filePath); |
no test coverage detected