Skip to content

Commit

Permalink
fix(structure): fixing issue with mock for sanity in DocumentPerspect…
Browse files Browse the repository at this point in the history
…iveMenu (#7181)
  • Loading branch information
jordanl17 authored and juice49 committed Sep 3, 2024
1 parent 4fe352f commit 28b9d8b
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ type GetAllVersionsOfDocumentType = (
) => Promise<Partial<BundleDocument>[]>

jest.mock('sanity', () => ({
...(jest.requireActual('sanity') || {}),
useClient: jest.fn(),
usePerspective: jest.fn().mockReturnValue({
currentGlobalBundle: {},
Expand Down

0 comments on commit 28b9d8b

Please sign in to comment.