Skip to content

Codebase intelligence for AI and humans: code health scores, auto-generated docs, git analytics, dead code detection, and architectural decisions via MCP.

test(ui): click the Maintainability lens, not the removed Churn lens (#596)

Raghav Chamadiya2dee1e8af066
diff --git a/packages/ui/__tests__/health/code-health-map.test.tsx b/packages/ui/__tests__/health/code-health-map.test.tsx
index e6212b1f6..ce66ee5b8 100644
--- a/packages/ui/__tests__/health/code-health-map.test.tsx
+++ b/packages/ui/__tests__/health/code-health-map.test.tsx
@@ -114,8 +114,8 @@ describe("CodeHealthMap", () => {
onOverlayChange={onOverlayChange}
/>,
);
- // The lens switcher renders one toggle button per lens; click "Churn".
- fireEvent.click(getByRole("button", { name: "Churn" }));
- expect(onOverlayChange).toHaveBeenCalledWith("churn");
+ // The lens switcher renders one toggle button per lens; click "Maintainability".
+ fireEvent.click(getByRole("button", { name: "Maintainability" }));
+ expect(onOverlayChange).toHaveBeenCalledWith("maintainability");
});
});