diff --git a/packages/sanity/src/structure/panes/document/documentPanel/header/perspective/__tests__/DocumentPerspectiveMenu.test.tsx b/packages/sanity/src/structure/panes/document/documentPanel/header/perspective/__tests__/DocumentPerspectiveMenu.test.tsx index e47843375eb2..3dcd393c85b7 100644 --- a/packages/sanity/src/structure/panes/document/documentPanel/header/perspective/__tests__/DocumentPerspectiveMenu.test.tsx +++ b/packages/sanity/src/structure/panes/document/documentPanel/header/perspective/__tests__/DocumentPerspectiveMenu.test.tsx @@ -34,6 +34,7 @@ vi.mock('sanity/router', () => { return { useRouter: vi.fn().mockReturnValue({ stickyParams: {}, + perspectiveState: {}, }), route: { create: vi.fn(), diff --git a/packages/sanity/src/structure/panes/documentList/__tests__/PaneContainer.test.tsx b/packages/sanity/src/structure/panes/documentList/__tests__/PaneContainer.test.tsx index 13cece67db2a..6c1c1b4d7c4e 100644 --- a/packages/sanity/src/structure/panes/documentList/__tests__/PaneContainer.test.tsx +++ b/packages/sanity/src/structure/panes/documentList/__tests__/PaneContainer.test.tsx @@ -30,7 +30,12 @@ vi.mock('sanity', async (importOriginal) => ({ })) vi.mock('sanity/router', async (importOriginal) => ({ ...(await importOriginal()), - useRouter: vi.fn().mockReturnValue({stickyParams: {}, state: {}, navigate: vi.fn()}), + useRouter: vi.fn().mockReturnValue({ + stickyParams: {}, + state: {}, + navigate: vi.fn(), + perspectiveState: {}, + }), })) const mockUseSearchState = useSearchState as Mock