From a9b614ae2deda0f9dfe55b15a926dfd5e201add1 Mon Sep 17 00:00:00 2001 From: Lum1104 Date: Sun, 3 May 2026 16:08:52 +0800 Subject: [PATCH] fix(dashboard): complete the GraphEdge test fixture Earlier review fix-up dropped the `as GraphEdge` cast but didn't add the `direction` and `weight` fields, breaking `tsc -b`. Tests still passed because vitest doesn't typecheck. Add the missing fields so the dashboard build is green again. Co-Authored-By: Claude Opus 4.7 (1M context) --- .../dashboard/src/utils/__tests__/edgeAggregation.test.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/understand-anything-plugin/packages/dashboard/src/utils/__tests__/edgeAggregation.test.ts b/understand-anything-plugin/packages/dashboard/src/utils/__tests__/edgeAggregation.test.ts index 3b41edc..f5196c3 100644 --- a/understand-anything-plugin/packages/dashboard/src/utils/__tests__/edgeAggregation.test.ts +++ b/understand-anything-plugin/packages/dashboard/src/utils/__tests__/edgeAggregation.test.ts @@ -6,6 +6,8 @@ const ce = (source: string, target: string, type: EdgeType = "calls"): GraphEdge source, target, type, + direction: "forward", + weight: 1, }); describe("aggregateContainerEdges", () => {