Skip to content

Commit ed92c83

Browse files
github-actions[bot]bugraoz93
authored andcommitted
[v3-2-test] unmock Graph component in Graph.test.tsx so hook assertions are reached (#65555) (#65556)
(cherry picked from commit 7d13c2c) Co-authored-by: Bugra Ozturk <bugraoz93@users.noreply.github.com>
1 parent de3d727 commit ed92c83

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)