From 3e79d46f6b7ace27f7afd308b2fcb7ab660767ba Mon Sep 17 00:00:00 2001 From: bugraoz93 Date: Mon, 20 Apr 2026 18:36:43 +0200 Subject: [PATCH] unmock Graph component in Graph.test.tsx so hook assertions are reached --- .../src/airflow/ui/src/layouts/Details/Graph/Graph.test.tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/airflow-core/src/airflow/ui/src/layouts/Details/Graph/Graph.test.tsx b/airflow-core/src/airflow/ui/src/layouts/Details/Graph/Graph.test.tsx index 8fa32dcc2c835..da463360e9683 100644 --- a/airflow-core/src/airflow/ui/src/layouts/Details/Graph/Graph.test.tsx +++ b/airflow-core/src/airflow/ui/src/layouts/Details/Graph/Graph.test.tsx @@ -25,6 +25,10 @@ import { Wrapper } from "src/utils/Wrapper"; import { Graph } from "./Graph"; +// testsSetup.ts globally mocks Graph to null so full-page tests don't need to +// stub ELK layout data. Unmock it here so we test the real component. +vi.unmock("src/layouts/Details/Graph/Graph"); + let mockParams: Record = { dagId: "test_dag" }; vi.mock("react-router-dom", async () => {