test(structure): mock connection state revision in preset spec

This commit is contained in:
t8y2
2026-10-15 21:20:25 +08:00
parent 61d3c5b3f6
commit 0f31541fa8
@@ -237,6 +237,8 @@ vi.mock("@/stores/connectionStore", () => ({
useConnectionStore: () => ({
ensureConnected: mocks.ensureConnected,
getConfig: (connectionId: string) => (connectionId === mocks.connection.id ? mocks.connection : undefined),
connectionStateRevision: () => 0,
isCurrentConnectionStateRevision: () => true,
}),
}));
vi.mock("@/stores/productionSafetyStore", () => ({ useProductionSafetyStore: () => ({ requestConfirmation: vi.fn() }) }));