From fee46c1e6a6ef817a6d5cd991290c318e4efec66 Mon Sep 17 00:00:00 2001 From: Ash Date: Sun, 4 Aug 2024 22:16:23 +0100 Subject: [PATCH] debug: mocks --- .../sheetList/__tests__/DocumentSheetListPane.test.tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/sanity/src/structure/panes/documentList/sheetList/__tests__/DocumentSheetListPane.test.tsx b/packages/sanity/src/structure/panes/documentList/sheetList/__tests__/DocumentSheetListPane.test.tsx index 20b66135edba..8c4dfe97e4a7 100644 --- a/packages/sanity/src/structure/panes/documentList/sheetList/__tests__/DocumentSheetListPane.test.tsx +++ b/packages/sanity/src/structure/panes/documentList/sheetList/__tests__/DocumentSheetListPane.test.tsx @@ -36,6 +36,10 @@ jest.mock('sanity', () => ({ }), })) +jest.mock('sanity/structure', () => ({ + usePaneRouter: jest.fn(), +})) + const renderTest = async () => { const config = defineConfig({ projectId: 'test',