chore(router): remove perspective state from router #26755
Annotations
54 errors
src/core/releases/tool/detail/ReleaseDetailsEditor.test.tsx > ReleaseDetailsEditor > should call updateRelease after title change:
packages/sanity/src/core/releases/tool/detail/ReleaseDetailsEditor.tsx#L7
TypeError: useReleaseOperations is not a function
❯ ReleaseDetailsEditor src/core/releases/tool/detail/ReleaseDetailsEditor.tsx:7:27
❯ renderWithHooks ../../node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom.development.js:15486:18
❯ mountIndeterminateComponent ../../node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom.development.js:20103:13
❯ beginWork ../../node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom.development.js:21626:16
❯ beginWork$1 ../../node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom.development.js:27465:14
❯ performUnitOfWork ../../node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom.development.js:26599:12
❯ workLoopSync ../../node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom.development.js:26505:5
❯ renderRootSync ../../node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom.development.js:26473:7
❯ recoverFromConcurrentError ../../node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom.development.js:25889:20
❯ performConcurrentWorkOnRoot ../../node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom.development.js:25789:22
|
src/core/releases/tool/detail/ReleaseDetailsEditor.test.tsx > ReleaseDetailsEditor > should call updateRelease after description change:
packages/sanity/src/core/releases/tool/detail/ReleaseDetailsEditor.tsx#L7
TypeError: useReleaseOperations is not a function
❯ ReleaseDetailsEditor src/core/releases/tool/detail/ReleaseDetailsEditor.tsx:7:27
❯ renderWithHooks ../../node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom.development.js:15486:18
❯ mountIndeterminateComponent ../../node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom.development.js:20103:13
❯ beginWork ../../node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom.development.js:21626:16
❯ beginWork$1 ../../node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom.development.js:27465:14
❯ performUnitOfWork ../../node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom.development.js:26599:12
❯ workLoopSync ../../node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom.development.js:26505:5
❯ renderRootSync ../../node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom.development.js:26473:7
❯ recoverFromConcurrentError ../../node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom.development.js:25889:20
❯ performConcurrentWorkOnRoot ../../node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom.development.js:25789:22
|
src/structure/panes/document/documentPanel/banners/__tests__/DeletedDocumentBanners.test.tsx > DeletedDocumentBanners > does not show either banner when document is not deleted:
packages/sanity/src/structure/panes/document/documentPanel/banners/__tests__/DeletedDocumentBanners.test.tsx#L41
TypeError: mockUseReleases.mockReturnValue is not a function
❯ src/structure/panes/document/documentPanel/banners/__tests__/DeletedDocumentBanners.test.tsx:41:21
|
src/structure/panes/document/documentPanel/banners/__tests__/DeletedDocumentBanners.test.tsx > DeletedDocumentBanners > prefers to show release deleted banner when document was in a release:
packages/sanity/src/structure/panes/document/documentPanel/banners/__tests__/DeletedDocumentBanners.test.tsx#L63
TypeError: mockUseReleases.mockReturnValue is not a function
❯ src/structure/panes/document/documentPanel/banners/__tests__/DeletedDocumentBanners.test.tsx:63:21
|
src/structure/panes/document/documentPanel/banners/__tests__/DeletedDocumentBanners.test.tsx > DeletedDocumentBanners > shows the fallback document deleted banner when document was not in a release:
packages/sanity/src/structure/panes/document/documentPanel/banners/__tests__/DeletedDocumentBanners.test.tsx#L90
TypeError: mockUseReleases.mockReturnValue is not a function
❯ src/structure/panes/document/documentPanel/banners/__tests__/DeletedDocumentBanners.test.tsx:90:21
|
Test (ubuntu-latest / node 20)
Process completed with exit code 1.
|
src/core/releases/tool/detail/ReleaseDetailsEditor.test.tsx > ReleaseDetailsEditor > should call updateRelease after title change:
packages/sanity/src/core/releases/tool/detail/ReleaseDetailsEditor.tsx#L7
TypeError: useReleaseOperations is not a function
❯ ReleaseDetailsEditor src/core/releases/tool/detail/ReleaseDetailsEditor.tsx:7:27
❯ renderWithHooks ../../node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom.development.js:15486:18
❯ mountIndeterminateComponent ../../node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom.development.js:20103:13
❯ beginWork ../../node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom.development.js:21626:16
❯ beginWork$1 ../../node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom.development.js:27465:14
❯ performUnitOfWork ../../node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom.development.js:26599:12
❯ workLoopSync ../../node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom.development.js:26505:5
❯ renderRootSync ../../node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom.development.js:26473:7
❯ recoverFromConcurrentError ../../node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom.development.js:25889:20
❯ performConcurrentWorkOnRoot ../../node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom.development.js:25789:22
|
src/core/releases/tool/detail/ReleaseDetailsEditor.test.tsx > ReleaseDetailsEditor > should call updateRelease after description change:
packages/sanity/src/core/releases/tool/detail/ReleaseDetailsEditor.tsx#L7
TypeError: useReleaseOperations is not a function
❯ ReleaseDetailsEditor src/core/releases/tool/detail/ReleaseDetailsEditor.tsx:7:27
❯ renderWithHooks ../../node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom.development.js:15486:18
❯ mountIndeterminateComponent ../../node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom.development.js:20103:13
❯ beginWork ../../node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom.development.js:21626:16
❯ beginWork$1 ../../node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom.development.js:27465:14
❯ performUnitOfWork ../../node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom.development.js:26599:12
❯ workLoopSync ../../node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom.development.js:26505:5
❯ renderRootSync ../../node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom.development.js:26473:7
❯ recoverFromConcurrentError ../../node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom.development.js:25889:20
❯ performConcurrentWorkOnRoot ../../node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom.development.js:25789:22
|
src/structure/panes/document/documentPanel/banners/__tests__/DeletedDocumentBanners.test.tsx > DeletedDocumentBanners > does not show either banner when document is not deleted:
packages/sanity/src/structure/panes/document/documentPanel/banners/__tests__/DeletedDocumentBanners.test.tsx#L41
TypeError: mockUseReleases.mockReturnValue is not a function
❯ src/structure/panes/document/documentPanel/banners/__tests__/DeletedDocumentBanners.test.tsx:41:21
|
src/structure/panes/document/documentPanel/banners/__tests__/DeletedDocumentBanners.test.tsx > DeletedDocumentBanners > prefers to show release deleted banner when document was in a release:
packages/sanity/src/structure/panes/document/documentPanel/banners/__tests__/DeletedDocumentBanners.test.tsx#L63
TypeError: mockUseReleases.mockReturnValue is not a function
❯ src/structure/panes/document/documentPanel/banners/__tests__/DeletedDocumentBanners.test.tsx:63:21
|
src/structure/panes/document/documentPanel/banners/__tests__/DeletedDocumentBanners.test.tsx > DeletedDocumentBanners > shows the fallback document deleted banner when document was not in a release:
packages/sanity/src/structure/panes/document/documentPanel/banners/__tests__/DeletedDocumentBanners.test.tsx#L90
TypeError: mockUseReleases.mockReturnValue is not a function
❯ src/structure/panes/document/documentPanel/banners/__tests__/DeletedDocumentBanners.test.tsx:90:21
|
Test (ubuntu-latest / node 18)
Process completed with exit code 1.
|
src/structure/components/structureTool/StructureTitle.test.tsx > StructureTitle > With document panes > should not update the when the document is still loading:
packages/sanity/src/structure/components/structureTool/StructureTitle.tsx#L25
TypeError: usePerspective is not a function
❯ DocumentTitle src/structure/components/structureTool/StructureTitle.tsx:25:25
❯ renderWithHooks ../../node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom.development.js:15486:18
❯ mountIndeterminateComponent ../../node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom.development.js:20103:13
❯ beginWork ../../node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom.development.js:21626:16
❯ beginWork$1 ../../node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom.development.js:27465:14
❯ performUnitOfWork ../../node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom.development.js:26599:12
❯ workLoopSync ../../node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom.development.js:26505:5
❯ renderRootSync ../../node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom.development.js:26473:7
❯ recoverFromConcurrentError ../../node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom.development.js:25889:20
❯ performConcurrentWorkOnRoot ../../node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom.development.js:25789:22
|
src/structure/components/structureTool/StructureTitle.test.tsx > StructureTitle > With document panes > renders the correct title when the document pane has a title:
packages/sanity/src/structure/components/structureTool/StructureTitle.tsx#L25
TypeError: usePerspective is not a function
❯ DocumentTitle src/structure/components/structureTool/StructureTitle.tsx:25:25
❯ renderWithHooks ../../node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom.development.js:15486:18
❯ mountIndeterminateComponent ../../node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom.development.js:20103:13
❯ beginWork ../../node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom.development.js:21626:16
❯ beginWork$1 ../../node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom.development.js:27465:14
❯ performUnitOfWork ../../node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom.development.js:26599:12
❯ workLoopSync ../../node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom.development.js:26505:5
❯ renderRootSync ../../node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom.development.js:26473:7
❯ recoverFromConcurrentError ../../node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom.development.js:25889:20
❯ performConcurrentWorkOnRoot ../../node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom.development.js:25789:22
|
src/structure/components/structureTool/StructureTitle.test.tsx > StructureTitle > With document panes > renders the correct title when the document is new:
packages/sanity/src/structure/components/structureTool/StructureTitle.tsx#L25
TypeError: usePerspective is not a function
❯ DocumentTitle src/structure/components/structureTool/StructureTitle.tsx:25:25
❯ renderWithHooks ../../node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom.development.js:15486:18
❯ mountIndeterminateComponent ../../node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom.development.js:20103:13
❯ beginWork ../../node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom.development.js:21626:16
❯ beginWork$1 ../../node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom.development.js:27465:14
❯ performUnitOfWork ../../node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom.development.js:26599:12
❯ workLoopSync ../../node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom.development.js:26505:5
❯ renderRootSync ../../node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom.development.js:26473:7
❯ recoverFromConcurrentError ../../node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom.development.js:25889:20
❯ performConcurrentWorkOnRoot ../../node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom.development.js:25789:22
|
src/structure/components/structureTool/StructureTitle.test.tsx > StructureTitle > With document panes > renders the correct title when the document is untitled:
packages/sanity/src/structure/components/structureTool/StructureTitle.tsx#L25
TypeError: usePerspective is not a function
❯ DocumentTitle src/structure/components/structureTool/StructureTitle.tsx:25:25
❯ renderWithHooks ../../node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom.development.js:15486:18
❯ mountIndeterminateComponent ../../node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom.development.js:20103:13
❯ beginWork ../../node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom.development.js:21626:16
❯ beginWork$1 ../../node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom.development.js:27465:14
❯ performUnitOfWork ../../node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom.development.js:26599:12
❯ workLoopSync ../../node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom.development.js:26505:5
❯ renderRootSync ../../node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom.development.js:26473:7
❯ recoverFromConcurrentError ../../node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom.development.js:25889:20
❯ performConcurrentWorkOnRoot ../../node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom.development.js:25789:22
|
src/core/releases/components/dialog/__tests__/ReleaseDetailsDialog.test.tsx > ReleaseDetailsDialog > when creating a new release > should render the dialog:
packages/sanity/src/core/releases/components/dialog/__tests__/ReleaseDetailsDialog.test.tsx#L45
TypeError: Cannot read properties of undefined (reading 'mockReturnValue')
❯ src/core/releases/components/dialog/__tests__/ReleaseDetailsDialog.test.tsx:45:26
|
src/core/releases/components/dialog/__tests__/ReleaseDetailsDialog.test.tsx > ReleaseDetailsDialog > when creating a new release > should call onCancel when dialog is closed:
packages/sanity/src/core/releases/components/dialog/__tests__/ReleaseDetailsDialog.test.tsx#L45
TypeError: Cannot read properties of undefined (reading 'mockReturnValue')
❯ src/core/releases/components/dialog/__tests__/ReleaseDetailsDialog.test.tsx:45:26
|
src/core/releases/components/dialog/__tests__/ReleaseDetailsDialog.test.tsx > ReleaseDetailsDialog > when creating a new release > should call createRelease and onCreate when form is submitted:
packages/sanity/src/core/releases/components/dialog/__tests__/ReleaseDetailsDialog.test.tsx#L45
TypeError: Cannot read properties of undefined (reading 'mockReturnValue')
❯ src/core/releases/components/dialog/__tests__/ReleaseDetailsDialog.test.tsx:45:26
|
Test (ubuntu-latest / node 20)
Process completed with exit code 1.
|
src/structure/panes/document/documentPanel/header/perspective/__tests__/DocumentPerspectiveList.test.tsx > DocumentPerspectiveList > should render "Published" and "Draft" chips when it has no other version:
packages/sanity/src/core/releases/hooks/useVersionOperations.tsx#L16
TypeError: useReleaseOperations is not a function
❯ Proxy.useVersionOperations src/core/releases/hooks/useVersionOperations.tsx:16:43
❯ VersionChip2 src/structure/panes/document/documentPanel/header/perspective/VersionChip.tsx:94:27
❯ renderWithHooks ../../node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom.development.js:15486:18
❯ updateFunctionComponent ../../node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom.development.js:19617:20
❯ updateSimpleMemoComponent ../../node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom.development.js:19454:10
❯ updateMemoComponent ../../node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom.development.js:19303:14
❯ beginWork ../../node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom.development.js:21712:16
❯ beginWork$1 ../../node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom.development.js:27465:14
❯ performUnitOfWork ../../node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom.development.js:26599:12
❯ workLoopSync ../../node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom.development.js:26505:5
|
src/structure/panes/document/documentPanel/header/perspective/__tests__/DocumentPerspectiveList.test.tsx > DocumentPerspectiveList > should render the release chip when it has a release version:
packages/sanity/src/core/releases/hooks/useVersionOperations.tsx#L16
TypeError: useReleaseOperations is not a function
❯ Proxy.useVersionOperations src/core/releases/hooks/useVersionOperations.tsx:16:43
❯ VersionChip2 src/structure/panes/document/documentPanel/header/perspective/VersionChip.tsx:94:27
❯ renderWithHooks ../../node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom.development.js:15486:18
❯ updateFunctionComponent ../../node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom.development.js:19617:20
❯ updateSimpleMemoComponent ../../node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom.development.js:19454:10
❯ updateMemoComponent ../../node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom.development.js:19303:14
❯ beginWork ../../node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom.development.js:21712:16
❯ beginWork$1 ../../node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom.development.js:27465:14
❯ performUnitOfWork ../../node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom.development.js:26599:12
❯ workLoopSync ../../node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom.development.js:26505:5
|
Test (ubuntu-latest / node 20)
Process completed with exit code 1.
|
src/structure/components/structureTool/StructureTitle.test.tsx > StructureTitle > With document panes > should not update the when the document is still loading:
packages/sanity/src/structure/components/structureTool/StructureTitle.tsx#L25
TypeError: usePerspective is not a function
❯ DocumentTitle src/structure/components/structureTool/StructureTitle.tsx:25:25
❯ renderWithHooks ../../node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom.development.js:15486:18
❯ mountIndeterminateComponent ../../node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom.development.js:20103:13
❯ beginWork ../../node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom.development.js:21626:16
❯ beginWork$1 ../../node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom.development.js:27465:14
❯ performUnitOfWork ../../node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom.development.js:26599:12
❯ workLoopSync ../../node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom.development.js:26505:5
❯ renderRootSync ../../node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom.development.js:26473:7
❯ recoverFromConcurrentError ../../node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom.development.js:25889:20
❯ performConcurrentWorkOnRoot ../../node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom.development.js:25789:22
|
src/structure/components/structureTool/StructureTitle.test.tsx > StructureTitle > With document panes > renders the correct title when the document pane has a title:
packages/sanity/src/structure/components/structureTool/StructureTitle.tsx#L25
TypeError: usePerspective is not a function
❯ DocumentTitle src/structure/components/structureTool/StructureTitle.tsx:25:25
❯ renderWithHooks ../../node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom.development.js:15486:18
❯ mountIndeterminateComponent ../../node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom.development.js:20103:13
❯ beginWork ../../node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom.development.js:21626:16
❯ beginWork$1 ../../node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom.development.js:27465:14
❯ performUnitOfWork ../../node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom.development.js:26599:12
❯ workLoopSync ../../node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom.development.js:26505:5
❯ renderRootSync ../../node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom.development.js:26473:7
❯ recoverFromConcurrentError ../../node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom.development.js:25889:20
❯ performConcurrentWorkOnRoot ../../node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom.development.js:25789:22
|
src/structure/components/structureTool/StructureTitle.test.tsx > StructureTitle > With document panes > renders the correct title when the document is new:
packages/sanity/src/structure/components/structureTool/StructureTitle.tsx#L25
TypeError: usePerspective is not a function
❯ DocumentTitle src/structure/components/structureTool/StructureTitle.tsx:25:25
❯ renderWithHooks ../../node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom.development.js:15486:18
❯ mountIndeterminateComponent ../../node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom.development.js:20103:13
❯ beginWork ../../node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom.development.js:21626:16
❯ beginWork$1 ../../node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom.development.js:27465:14
❯ performUnitOfWork ../../node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom.development.js:26599:12
❯ workLoopSync ../../node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom.development.js:26505:5
❯ renderRootSync ../../node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom.development.js:26473:7
❯ recoverFromConcurrentError ../../node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom.development.js:25889:20
❯ performConcurrentWorkOnRoot ../../node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom.development.js:25789:22
|
src/structure/components/structureTool/StructureTitle.test.tsx > StructureTitle > With document panes > renders the correct title when the document is untitled:
packages/sanity/src/structure/components/structureTool/StructureTitle.tsx#L25
TypeError: usePerspective is not a function
❯ DocumentTitle src/structure/components/structureTool/StructureTitle.tsx:25:25
❯ renderWithHooks ../../node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom.development.js:15486:18
❯ mountIndeterminateComponent ../../node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom.development.js:20103:13
❯ beginWork ../../node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom.development.js:21626:16
❯ beginWork$1 ../../node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom.development.js:27465:14
❯ performUnitOfWork ../../node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom.development.js:26599:12
❯ workLoopSync ../../node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom.development.js:26505:5
❯ renderRootSync ../../node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom.development.js:26473:7
❯ recoverFromConcurrentError ../../node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom.development.js:25889:20
❯ performConcurrentWorkOnRoot ../../node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom.development.js:25789:22
|
src/core/releases/components/dialog/__tests__/ReleaseDetailsDialog.test.tsx > ReleaseDetailsDialog > when creating a new release > should render the dialog:
packages/sanity/src/core/releases/components/dialog/__tests__/ReleaseDetailsDialog.test.tsx#L45
TypeError: Cannot read properties of undefined (reading 'mockReturnValue')
❯ src/core/releases/components/dialog/__tests__/ReleaseDetailsDialog.test.tsx:45:26
|
src/core/releases/components/dialog/__tests__/ReleaseDetailsDialog.test.tsx > ReleaseDetailsDialog > when creating a new release > should call onCancel when dialog is closed:
packages/sanity/src/core/releases/components/dialog/__tests__/ReleaseDetailsDialog.test.tsx#L45
TypeError: Cannot read properties of undefined (reading 'mockReturnValue')
❯ src/core/releases/components/dialog/__tests__/ReleaseDetailsDialog.test.tsx:45:26
|
src/core/releases/components/dialog/__tests__/ReleaseDetailsDialog.test.tsx > ReleaseDetailsDialog > when creating a new release > should call createRelease and onCreate when form is submitted:
packages/sanity/src/core/releases/components/dialog/__tests__/ReleaseDetailsDialog.test.tsx#L45
TypeError: Cannot read properties of undefined (reading 'mockReturnValue')
❯ src/core/releases/components/dialog/__tests__/ReleaseDetailsDialog.test.tsx:45:26
|
Test (ubuntu-latest / node 18)
Process completed with exit code 1.
|
src/structure/panes/document/documentPanel/header/perspective/__tests__/DocumentPerspectiveList.test.tsx > DocumentPerspectiveList > should render "Published" and "Draft" chips when it has no other version:
packages/sanity/src/core/releases/hooks/useVersionOperations.tsx#L16
TypeError: useReleaseOperations is not a function
❯ Proxy.useVersionOperations src/core/releases/hooks/useVersionOperations.tsx:16:43
❯ VersionChip2 src/structure/panes/document/documentPanel/header/perspective/VersionChip.tsx:94:27
❯ renderWithHooks ../../node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom.development.js:15486:18
❯ updateFunctionComponent ../../node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom.development.js:19617:20
❯ updateSimpleMemoComponent ../../node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom.development.js:19454:10
❯ updateMemoComponent ../../node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom.development.js:19303:14
❯ beginWork ../../node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom.development.js:21712:16
❯ beginWork$1 ../../node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom.development.js:27465:14
❯ performUnitOfWork ../../node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom.development.js:26599:12
❯ workLoopSync ../../node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom.development.js:26505:5
|
src/structure/panes/document/documentPanel/header/perspective/__tests__/DocumentPerspectiveList.test.tsx > DocumentPerspectiveList > should render the release chip when it has a release version:
packages/sanity/src/core/releases/hooks/useVersionOperations.tsx#L16
TypeError: useReleaseOperations is not a function
❯ Proxy.useVersionOperations src/core/releases/hooks/useVersionOperations.tsx:16:43
❯ VersionChip2 src/structure/panes/document/documentPanel/header/perspective/VersionChip.tsx:94:27
❯ renderWithHooks ../../node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom.development.js:15486:18
❯ updateFunctionComponent ../../node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom.development.js:19617:20
❯ updateSimpleMemoComponent ../../node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom.development.js:19454:10
❯ updateMemoComponent ../../node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom.development.js:19303:14
❯ beginWork ../../node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom.development.js:21712:16
❯ beginWork$1 ../../node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom.development.js:27465:14
❯ performUnitOfWork ../../node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom.development.js:26599:12
❯ workLoopSync ../../node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom.development.js:26505:5
|
Test (ubuntu-latest / node 18)
Process completed with exit code 1.
|
src/structure/panes/documentList/__tests__/PaneContainer.test.tsx > PaneContainer > should show the document list pane when a list layout is selected:
packages/sanity/src/structure/panes/documentList/DocumentListPane.tsx#L78
TypeError: useReleases is not a function
❯ DocumentListPane2 src/structure/panes/documentList/DocumentListPane.tsx:78:20
❯ renderWithHooks ../../node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom.development.js:15486:18
❯ updateFunctionComponent ../../node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom.development.js:19617:20
❯ updateSimpleMemoComponent ../../node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom.development.js:19454:10
❯ updateMemoComponent ../../node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom.development.js:19303:14
❯ beginWork ../../node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom.development.js:21712:16
❯ beginWork$1 ../../node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom.development.js:27465:14
❯ performUnitOfWork ../../node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom.development.js:26599:12
❯ workLoopSync ../../node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom.development.js:26505:5
❯ renderRootSync ../../node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom.development.js:26473:7
|
src/core/releases/components/dialog/__tests__/ReleaseForm.test.tsx > ReleaseForm > when creating a new release > should render the form fields:
packages/sanity/src/core/releases/components/dialog/__tests__/ReleaseForm.test.tsx#L61
TypeError: mockUseReleases.mockReturnValue is not a function
❯ src/core/releases/components/dialog/__tests__/ReleaseForm.test.tsx:61:23
|
src/core/releases/components/dialog/__tests__/ReleaseForm.test.tsx > ReleaseForm > when creating a new release > should call onChange when title input value changes:
packages/sanity/src/core/releases/components/dialog/__tests__/ReleaseForm.test.tsx#L61
TypeError: mockUseReleases.mockReturnValue is not a function
❯ src/core/releases/components/dialog/__tests__/ReleaseForm.test.tsx:61:23
|
src/core/releases/components/dialog/__tests__/ReleaseForm.test.tsx > ReleaseForm > when creating a new release > should call onChange when description textarea value changes:
packages/sanity/src/core/releases/components/dialog/__tests__/ReleaseForm.test.tsx#L61
TypeError: mockUseReleases.mockReturnValue is not a function
❯ src/core/releases/components/dialog/__tests__/ReleaseForm.test.tsx:61:23
|
src/core/releases/components/dialog/__tests__/ReleaseForm.test.tsx > ReleaseForm > when updating an existing release > should allow for any title to be used:
packages/sanity/src/core/releases/components/dialog/__tests__/ReleaseForm.test.tsx#L163
TypeError: mockUseReleases.mockReturnValue is not a function
❯ src/core/releases/components/dialog/__tests__/ReleaseForm.test.tsx:163:23
|
src/core/releases/components/dialog/__tests__/ReleaseForm.test.tsx > ReleaseForm > when updating an existing release > should populate the form with the existing release values:
packages/sanity/src/core/releases/components/dialog/__tests__/ReleaseForm.test.tsx#L163
TypeError: mockUseReleases.mockReturnValue is not a function
❯ src/core/releases/components/dialog/__tests__/ReleaseForm.test.tsx:163:23
|
src/structure/panes/document/documentPanel/header/perspective/__tests__/DocumentHeaderTitle.test.tsx > DocumentHeaderTitle > should render without crashing:
packages/sanity/src/structure/panes/document/documentPanel/header/perspective/__tests__/DocumentHeaderTitle.test.tsx#L73
TypeError: Cannot read properties of undefined (reading 'mockReturnValue')
❯ src/structure/panes/document/documentPanel/header/perspective/__tests__/DocumentHeaderTitle.test.tsx:73:21
|
src/structure/panes/document/documentPanel/header/perspective/__tests__/DocumentHeaderTitle.test.tsx > DocumentHeaderTitle > should return an empty fragment when connectionState is not "connected" and editState is empty:
packages/sanity/src/structure/panes/document/documentPanel/header/perspective/__tests__/DocumentHeaderTitle.test.tsx#L73
TypeError: Cannot read properties of undefined (reading 'mockReturnValue')
❯ src/structure/panes/document/documentPanel/header/perspective/__tests__/DocumentHeaderTitle.test.tsx:73:21
|
src/structure/panes/document/documentPanel/header/perspective/__tests__/DocumentHeaderTitle.test.tsx > DocumentHeaderTitle > should render the header title when connectionState is not "connected" and editState has values:
packages/sanity/src/structure/panes/document/documentPanel/header/perspective/__tests__/DocumentHeaderTitle.test.tsx#L73
TypeError: Cannot read properties of undefined (reading 'mockReturnValue')
❯ src/structure/panes/document/documentPanel/header/perspective/__tests__/DocumentHeaderTitle.test.tsx:73:21
|
src/structure/panes/document/documentPanel/header/perspective/__tests__/DocumentHeaderTitle.test.tsx > DocumentHeaderTitle > should return the title if it is provided:
packages/sanity/src/structure/panes/document/documentPanel/header/perspective/__tests__/DocumentHeaderTitle.test.tsx#L73
TypeError: Cannot read properties of undefined (reading 'mockReturnValue')
❯ src/structure/panes/document/documentPanel/header/perspective/__tests__/DocumentHeaderTitle.test.tsx:73:21
|
src/structure/panes/documentList/__tests__/PaneContainer.test.tsx > PaneContainer > should show the document list pane when a list layout is selected:
packages/sanity/src/structure/panes/documentList/DocumentListPane.tsx#L78
TypeError: useReleases is not a function
❯ DocumentListPane2 src/structure/panes/documentList/DocumentListPane.tsx:78:20
❯ renderWithHooks ../../node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom.development.js:15486:18
❯ updateFunctionComponent ../../node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom.development.js:19617:20
❯ updateSimpleMemoComponent ../../node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom.development.js:19454:10
❯ updateMemoComponent ../../node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom.development.js:19303:14
❯ beginWork ../../node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom.development.js:21712:16
❯ beginWork$1 ../../node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom.development.js:27465:14
❯ performUnitOfWork ../../node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom.development.js:26599:12
❯ workLoopSync ../../node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom.development.js:26505:5
❯ renderRootSync ../../node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom.development.js:26473:7
|
src/core/releases/components/dialog/__tests__/ReleaseForm.test.tsx > ReleaseForm > when creating a new release > should render the form fields:
packages/sanity/src/core/releases/components/dialog/__tests__/ReleaseForm.test.tsx#L61
TypeError: mockUseReleases.mockReturnValue is not a function
❯ src/core/releases/components/dialog/__tests__/ReleaseForm.test.tsx:61:23
|
src/core/releases/components/dialog/__tests__/ReleaseForm.test.tsx > ReleaseForm > when creating a new release > should call onChange when title input value changes:
packages/sanity/src/core/releases/components/dialog/__tests__/ReleaseForm.test.tsx#L61
TypeError: mockUseReleases.mockReturnValue is not a function
❯ src/core/releases/components/dialog/__tests__/ReleaseForm.test.tsx:61:23
|
src/core/releases/components/dialog/__tests__/ReleaseForm.test.tsx > ReleaseForm > when creating a new release > should call onChange when description textarea value changes:
packages/sanity/src/core/releases/components/dialog/__tests__/ReleaseForm.test.tsx#L61
TypeError: mockUseReleases.mockReturnValue is not a function
❯ src/core/releases/components/dialog/__tests__/ReleaseForm.test.tsx:61:23
|
src/core/releases/components/dialog/__tests__/ReleaseForm.test.tsx > ReleaseForm > when updating an existing release > should allow for any title to be used:
packages/sanity/src/core/releases/components/dialog/__tests__/ReleaseForm.test.tsx#L163
TypeError: mockUseReleases.mockReturnValue is not a function
❯ src/core/releases/components/dialog/__tests__/ReleaseForm.test.tsx:163:23
|
src/core/releases/components/dialog/__tests__/ReleaseForm.test.tsx > ReleaseForm > when updating an existing release > should populate the form with the existing release values:
packages/sanity/src/core/releases/components/dialog/__tests__/ReleaseForm.test.tsx#L163
TypeError: mockUseReleases.mockReturnValue is not a function
❯ src/core/releases/components/dialog/__tests__/ReleaseForm.test.tsx:163:23
|
src/structure/panes/document/documentPanel/header/perspective/__tests__/DocumentHeaderTitle.test.tsx > DocumentHeaderTitle > should render without crashing:
packages/sanity/src/structure/panes/document/documentPanel/header/perspective/__tests__/DocumentHeaderTitle.test.tsx#L73
TypeError: Cannot read properties of undefined (reading 'mockReturnValue')
❯ src/structure/panes/document/documentPanel/header/perspective/__tests__/DocumentHeaderTitle.test.tsx:73:21
|
src/structure/panes/document/documentPanel/header/perspective/__tests__/DocumentHeaderTitle.test.tsx > DocumentHeaderTitle > should return an empty fragment when connectionState is not "connected" and editState is empty:
packages/sanity/src/structure/panes/document/documentPanel/header/perspective/__tests__/DocumentHeaderTitle.test.tsx#L73
TypeError: Cannot read properties of undefined (reading 'mockReturnValue')
❯ src/structure/panes/document/documentPanel/header/perspective/__tests__/DocumentHeaderTitle.test.tsx:73:21
|
src/structure/panes/document/documentPanel/header/perspective/__tests__/DocumentHeaderTitle.test.tsx > DocumentHeaderTitle > should render the header title when connectionState is not "connected" and editState has values:
packages/sanity/src/structure/panes/document/documentPanel/header/perspective/__tests__/DocumentHeaderTitle.test.tsx#L73
TypeError: Cannot read properties of undefined (reading 'mockReturnValue')
❯ src/structure/panes/document/documentPanel/header/perspective/__tests__/DocumentHeaderTitle.test.tsx:73:21
|
src/structure/panes/document/documentPanel/header/perspective/__tests__/DocumentHeaderTitle.test.tsx > DocumentHeaderTitle > should return the title if it is provided:
packages/sanity/src/structure/panes/document/documentPanel/header/perspective/__tests__/DocumentHeaderTitle.test.tsx#L73
TypeError: Cannot read properties of undefined (reading 'mockReturnValue')
❯ src/structure/panes/document/documentPanel/header/perspective/__tests__/DocumentHeaderTitle.test.tsx:73:21
|