Skip to content

chore(router): remove perspective state from router #26758

chore(router): remove perspective state from router

chore(router): remove perspective state from router #26758

Triggered via pull request November 5, 2024 09:30
Status Failure
Total duration 2m 12s
Artifacts

test.yml

on: pull_request
Matrix: test
Fit to window
Zoom out
Zoom in

Annotations

46 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
Test (ubuntu-latest / node 20)
Process completed with exit code 1.
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
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
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 20)
Process completed with exit code 1.
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
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/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 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/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 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