From 786ecff8ce6147f2365a075c77d808e9bff1025a Mon Sep 17 00:00:00 2001 From: zipg <4047349+zipg@users.noreply.github.com> Date: Fri, 9 Oct 2026 15:00:02 +0800 Subject: [PATCH] test: stub preloaded grid in graph action suite --- .../layout/__tests__/ContentArea.graphActions.spec.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apps/desktop/src/components/layout/__tests__/ContentArea.graphActions.spec.ts b/apps/desktop/src/components/layout/__tests__/ContentArea.graphActions.spec.ts index 638c950046..0fcc07a370 100644 --- a/apps/desktop/src/components/layout/__tests__/ContentArea.graphActions.spec.ts +++ b/apps/desktop/src/components/layout/__tests__/ContentArea.graphActions.spec.ts @@ -14,6 +14,8 @@ interface GraphActions { const graphViews = vi.hoisted(() => [] as GraphActions[]); vi.mock("@/components/editor/QueryEditor.vue", () => ({ default: { render: () => null } })); +// ContentArea also preloads the grid for graph results; keep its async imports within this test's lifetime. +vi.mock("@/components/grid/DataGrid.vue", () => ({ default: { render: () => null } })); vi.mock("@/components/grid/DataGridColumnLayoutPopover.vue", () => ({ default: { render: () => null } })); vi.mock("@/components/graph/GraphResultView.vue", () => ({ __esModule: true,