(graph: CodeGraph)
| 568 | |
| 569 | /** `<file> failed` per failed `navigate` call, `<file> → <route>` per navigation. */ |
| 570 | const navigationState = (graph: CodeGraph): string[] => [ |
| 571 | ...internals(graph).queries.getFailedCallsByTail(['navigate']).map((ref) => `${ref.filePath} failed`), |
| 572 | ...internals(graph).queries.getResolvedNavigations().map((e) => `${e.sourceFilePath} → ${graph.getNode(e.target)?.name}`), |
| 573 | ].sort(); |
| 574 | |
| 575 | /** The app's `/` route, moved to `path` — a route of that app the sync added. */ |
| 576 | const routeAt = (route: Node, path: string): Node => ({ ...route, id: route.id.replace(/:\/$/, `:${path}`), name: path }); |
no test coverage detected