diff --git a/src/renderer/src/components/editor/rich-markdown-async-image-paste.test.ts b/src/renderer/src/components/editor/rich-markdown-async-image-paste.test.ts index 9b13ee256d2..aba0e4b9d26 100644 --- a/src/renderer/src/components/editor/rich-markdown-async-image-paste.test.ts +++ b/src/renderer/src/components/editor/rich-markdown-async-image-paste.test.ts @@ -17,7 +17,12 @@ vi.mock('@/runtime/runtime-file-client', () => ({ importExternalPathsToRuntime: vi.mock('@/lib/connection-context', () => ({ getConnectionId: vi.fn(() => null) })) vi.mock('@/store', () => ({ useAppStore: { - getState: vi.fn(() => ({ settings: null, folderWorkspaces: [], worktreesByRepo: {} })) + getState: vi.fn(() => ({ + settings: null, + folderWorkspaces: [], + worktreesByRepo: {}, + openFiles: [] + })) } })) vi.mock('@/runtime/runtime-rpc-client', () => ({ diff --git a/src/renderer/src/components/editor/rich-markdown-async-image-table.test.ts b/src/renderer/src/components/editor/rich-markdown-async-image-table.test.ts index eb6de2b96de..9c973af78d1 100644 --- a/src/renderer/src/components/editor/rich-markdown-async-image-table.test.ts +++ b/src/renderer/src/components/editor/rich-markdown-async-image-table.test.ts @@ -11,7 +11,12 @@ vi.mock('@/runtime/runtime-file-client', () => ({ importExternalPathsToRuntime: vi.mock('@/lib/connection-context', () => ({ getConnectionId: vi.fn(() => null) })) vi.mock('@/store', () => ({ useAppStore: { - getState: vi.fn(() => ({ settings: null, folderWorkspaces: [], worktreesByRepo: {} })) + getState: vi.fn(() => ({ + settings: null, + folderWorkspaces: [], + worktreesByRepo: {}, + openFiles: [] + })) } })) vi.mock('@/runtime/runtime-rpc-client', () => ({ diff --git a/src/renderer/src/components/editor/useLocalImagePick.test.tsx b/src/renderer/src/components/editor/useLocalImagePick.test.tsx index b22a85c9cb0..0ea9dcab5d8 100644 --- a/src/renderer/src/components/editor/useLocalImagePick.test.tsx +++ b/src/renderer/src/components/editor/useLocalImagePick.test.tsx @@ -13,7 +13,12 @@ vi.mock('@/runtime/runtime-file-client', () => ({ importExternalPathsToRuntime: vi.mock('@/lib/connection-context', () => ({ getConnectionId: vi.fn(() => null) })) vi.mock('@/store', () => ({ useAppStore: { - getState: vi.fn(() => ({ settings: null, folderWorkspaces: [], worktreesByRepo: {} })) + getState: vi.fn(() => ({ + settings: null, + folderWorkspaces: [], + worktreesByRepo: {}, + openFiles: [] + })) } })) vi.mock('@/runtime/runtime-rpc-client', () => ({