This is an automated email from the ASF dual-hosted git repository.

bugraoz93 pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git


The following commit(s) were added to refs/heads/main by this push:
     new 7d13c2cd025 unmock Graph component in Graph.test.tsx so hook 
assertions are reached (#65555)
7d13c2cd025 is described below

commit 7d13c2cd0253539a8b4df62b4b661b277a688427
Author: Bugra Ozturk <[email protected]>
AuthorDate: Mon Apr 20 18:46:50 2026 +0200

    unmock Graph component in Graph.test.tsx so hook assertions are reached 
(#65555)
---
 airflow-core/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 8fa32dcc2c8..da463360e96 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<string, string> = { dagId: "test_dag" };
 
 vi.mock("react-router-dom", async () => {

Reply via email to