Skip to content

Commit 7d13c2c

Browse files
authored
unmock Graph component in Graph.test.tsx so hook assertions are reached (#65555)
1 parent de62575 commit 7d13c2c

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

‎airflow-core/src/airflow/ui/src/layouts/Details/Graph/Graph.test.tsx‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@ import { Wrapper } from "src/utils/Wrapper";
2525

2626
import { Graph } from "./Graph";
2727

28+
// testsSetup.ts globally mocks Graph to null so full-page tests don't need to
29+
// stub ELK layout data. Unmock it here so we test the real component.
30+
vi.unmock("src/layouts/Details/Graph/Graph");
31+
2832
let mockParams: Record<string, string> = { dagId: "test_dag" };
2933

3034
vi.mock("react-router-dom", async () => {

0 commit comments

Comments
 (0)