test(artifacts): report observed action routes when a compiled route is missing
Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
1 parent
b08228d19f
commit
c60b737f7d
1 file changed
+12
-1
@@ -234,7 +234,18 @@ describe("bounded Interface Builder archive decoding", () => {
|
||||
analysis.graph.nodes.find(({ id }) => id === from)?.kind ===
|
||||
"control",
|
||||
);
|
||||
expect(actionSource).toBeDefined();
|
||||
const describeNode = (id: string | null) => {
|
||||
const node = analysis.graph.nodes.find((item) => item.id === id);
|
||||
return node === undefined ? String(id) : `${node.kind}:${node.name}`;
|
||||
};
|
||||
const actionRoutes = analysis.graph.edges
|
||||
.filter(
|
||||
({ relation, from, to }) =>
|
||||
relation === "target_action" &&
|
||||
(from === action?.id || to === action?.id),
|
||||
)
|
||||
.map(({ from, to }) => `${describeNode(from)} -> ${describeNode(to)}`);
|
||||
expect(actionSource, actionRoutes.join("; ")).toBeDefined();
|
||||
expect(
|
||||
analysis.graph.edges.some(
|
||||
({ from, relation, to }) =>
|
||||
|
||||
Reference in new issue
Block a user