Skip to content

refactor: use branded ids for releases #27059

refactor: use branded ids for releases

refactor: use branded ids for releases #27059

Triggered via pull request November 18, 2024 10:42
Status Failure
Total duration 2m 36s
Artifacts

test.yml

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

Annotations

54 errors
src/core/releases/navbar/__tests__/ReleasesNav.test.tsx > ReleasesNav > should have link to releases tool: packages/sanity/src/core/releases/navbar/__tests__/ReleasesNav.test.tsx#L40
TypeError: mockUsePerspective.mockReturnValue is not a function ❯ src/core/releases/navbar/__tests__/ReleasesNav.test.tsx:40:24
src/core/releases/navbar/__tests__/ReleasesNav.test.tsx > ReleasesNav > should have dropdown menu for global perspectives: packages/sanity/src/core/releases/navbar/__tests__/ReleasesNav.test.tsx#L40
TypeError: mockUsePerspective.mockReturnValue is not a function ❯ src/core/releases/navbar/__tests__/ReleasesNav.test.tsx:40:24
src/core/releases/navbar/__tests__/ReleasesNav.test.tsx > ReleasesNav > should not have clear button when no perspective is chosen: packages/sanity/src/core/releases/navbar/__tests__/ReleasesNav.test.tsx#L40
TypeError: mockUsePerspective.mockReturnValue is not a function ❯ src/core/releases/navbar/__tests__/ReleasesNav.test.tsx:40:24
src/core/releases/navbar/__tests__/ReleasesNav.test.tsx > ReleasesNav > should have clear button to unset perspective when a perspective is chosen: packages/sanity/src/core/releases/navbar/__tests__/ReleasesNav.test.tsx#L40
TypeError: mockUsePerspective.mockReturnValue is not a function ❯ src/core/releases/navbar/__tests__/ReleasesNav.test.tsx:40:24
src/core/releases/navbar/__tests__/ReleasesNav.test.tsx > ReleasesNav > should list the title of the chosen perspective: packages/sanity/src/core/releases/navbar/__tests__/ReleasesNav.test.tsx#L40
TypeError: mockUsePerspective.mockReturnValue is not a function ❯ src/core/releases/navbar/__tests__/ReleasesNav.test.tsx:40:24
src/core/releases/navbar/__tests__/ReleasesNav.test.tsx > ReleasesNav > should show release avatar for chosen perspective: packages/sanity/src/core/releases/navbar/__tests__/ReleasesNav.test.tsx#L40
TypeError: mockUsePerspective.mockReturnValue is not a function ❯ src/core/releases/navbar/__tests__/ReleasesNav.test.tsx:40:24
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#L38
TypeError: Cannot read properties of undefined (reading 'mockReturnValue') ❯ src/structure/panes/document/documentPanel/banners/__tests__/DeletedDocumentBanners.test.tsx:38:24
Test (ubuntu-latest / node 20)
Process completed with exit code 1.
src/core/releases/navbar/__tests__/ReleasesNav.test.tsx > ReleasesNav > should have link to releases tool: packages/sanity/src/core/releases/navbar/__tests__/ReleasesNav.test.tsx#L40
TypeError: mockUsePerspective.mockReturnValue is not a function ❯ src/core/releases/navbar/__tests__/ReleasesNav.test.tsx:40:24
src/core/releases/navbar/__tests__/ReleasesNav.test.tsx > ReleasesNav > should have dropdown menu for global perspectives: packages/sanity/src/core/releases/navbar/__tests__/ReleasesNav.test.tsx#L40
TypeError: mockUsePerspective.mockReturnValue is not a function ❯ src/core/releases/navbar/__tests__/ReleasesNav.test.tsx:40:24
src/core/releases/navbar/__tests__/ReleasesNav.test.tsx > ReleasesNav > should not have clear button when no perspective is chosen: packages/sanity/src/core/releases/navbar/__tests__/ReleasesNav.test.tsx#L40
TypeError: mockUsePerspective.mockReturnValue is not a function ❯ src/core/releases/navbar/__tests__/ReleasesNav.test.tsx:40:24
src/core/releases/navbar/__tests__/ReleasesNav.test.tsx > ReleasesNav > should have clear button to unset perspective when a perspective is chosen: packages/sanity/src/core/releases/navbar/__tests__/ReleasesNav.test.tsx#L40
TypeError: mockUsePerspective.mockReturnValue is not a function ❯ src/core/releases/navbar/__tests__/ReleasesNav.test.tsx:40:24
src/core/releases/navbar/__tests__/ReleasesNav.test.tsx > ReleasesNav > should list the title of the chosen perspective: packages/sanity/src/core/releases/navbar/__tests__/ReleasesNav.test.tsx#L40
TypeError: mockUsePerspective.mockReturnValue is not a function ❯ src/core/releases/navbar/__tests__/ReleasesNav.test.tsx:40:24
src/core/releases/navbar/__tests__/ReleasesNav.test.tsx > ReleasesNav > should show release avatar for chosen perspective: packages/sanity/src/core/releases/navbar/__tests__/ReleasesNav.test.tsx#L40
TypeError: mockUsePerspective.mockReturnValue is not a function ❯ src/core/releases/navbar/__tests__/ReleasesNav.test.tsx:40:24
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#L38
TypeError: Cannot read properties of undefined (reading 'mockReturnValue') ❯ src/structure/panes/document/documentPanel/banners/__tests__/DeletedDocumentBanners.test.tsx:38:24
Test (ubuntu-latest / node 18)
Process completed with exit code 1.
src/core/releases/hooks/__tests__/utils.test.ts > getReleasesPerspective() > should return the correct release stack for { perspective: 'bundle.asap1', excluded: [], expected: [ 'asap1', 'drafts' ] }: packages/sanity/src/core/releases/hooks/__tests__/utils.test.ts#L230
AssertionError: expected [] to deeply equal [ 'asap1', 'drafts' ] - Expected + Received - Array [ - "asap1", - "drafts", - ] + Array [] ❯ src/core/releases/hooks/__tests__/utils.test.ts:230:22
src/core/releases/hooks/__tests__/utils.test.ts > getReleasesPerspective() > should return the correct release stack for { perspective: 'bundle.asap2', excluded: [], expected: [ 'asap2', 'asap1', 'drafts' ] }: packages/sanity/src/core/releases/hooks/__tests__/utils.test.ts#L230
AssertionError: expected [] to deeply equal [ 'asap2', 'asap1', 'drafts' ] - Expected + Received - Array [ - "asap2", - "asap1", - "drafts", - ] + Array [] ❯ src/core/releases/hooks/__tests__/utils.test.ts:230:22
src/core/releases/hooks/__tests__/utils.test.ts > getReleasesPerspective() > should return the correct release stack for { perspective: 'bundle.undecided2', excluded: [], expected: [ 'undecided2', 'future4', 'future1', 'asap2', 'asap1', 'drafts' ] }: packages/sanity/src/core/releases/hooks/__tests__/utils.test.ts#L230
AssertionError: expected [] to deeply equal [ 'undecided2', 'future4', …(4) ] - Expected + Received - Array [ - "undecided2", - "future4", - "future1", - "asap2", - "asap1", - "drafts", - ] + Array [] ❯ src/core/releases/hooks/__tests__/utils.test.ts:230:22
src/core/releases/hooks/__tests__/utils.test.ts > getReleasesPerspective() > should return the correct release stack for { perspective: 'bundle.undecided2', excluded: [ 'future1', 'drafts' ], expected: [ 'undecided2', 'future4', 'asap2', 'asap1' ] }: packages/sanity/src/core/releases/hooks/__tests__/utils.test.ts#L230
AssertionError: expected [] to deeply equal [ 'undecided2', 'future4', …(2) ] - Expected + Received - Array [ - "undecided2", - "future4", - "asap2", - "asap1", - ] + Array [] ❯ src/core/releases/hooks/__tests__/utils.test.ts:230:22
Test (ubuntu-latest / node 20)
Process completed with exit code 1.
src/core/releases/hooks/__tests__/utils.test.ts > getReleasesPerspective() > should return the correct release stack for { perspective: 'bundle.asap1', excluded: [], expected: [ 'asap1', 'drafts' ] }: packages/sanity/src/core/releases/hooks/__tests__/utils.test.ts#L230
AssertionError: expected [] to deeply equal [ 'asap1', 'drafts' ] - Expected + Received - Array [ - "asap1", - "drafts", - ] + Array [] ❯ src/core/releases/hooks/__tests__/utils.test.ts:230:22
src/core/releases/hooks/__tests__/utils.test.ts > getReleasesPerspective() > should return the correct release stack for { perspective: 'bundle.asap2', excluded: [], expected: [ 'asap2', 'asap1', 'drafts' ] }: packages/sanity/src/core/releases/hooks/__tests__/utils.test.ts#L230
AssertionError: expected [] to deeply equal [ 'asap2', 'asap1', 'drafts' ] - Expected + Received - Array [ - "asap2", - "asap1", - "drafts", - ] + Array [] ❯ src/core/releases/hooks/__tests__/utils.test.ts:230:22
src/core/releases/hooks/__tests__/utils.test.ts > getReleasesPerspective() > should return the correct release stack for { perspective: 'bundle.undecided2', excluded: [], expected: [ 'undecided2', 'future4', 'future1', 'asap2', 'asap1', 'drafts' ] }: packages/sanity/src/core/releases/hooks/__tests__/utils.test.ts#L230
AssertionError: expected [] to deeply equal [ 'undecided2', 'future4', …(4) ] - Expected + Received - Array [ - "undecided2", - "future4", - "future1", - "asap2", - "asap1", - "drafts", - ] + Array [] ❯ src/core/releases/hooks/__tests__/utils.test.ts:230:22
src/core/releases/hooks/__tests__/utils.test.ts > getReleasesPerspective() > should return the correct release stack for { perspective: 'bundle.undecided2', excluded: [ 'future1', 'drafts' ], expected: [ 'undecided2', 'future4', 'asap2', 'asap1' ] }: packages/sanity/src/core/releases/hooks/__tests__/utils.test.ts#L230
AssertionError: expected [] to deeply equal [ 'undecided2', 'future4', …(2) ] - Expected + Received - Array [ - "undecided2", - "future4", - "asap2", - "asap1", - ] + Array [] ❯ src/core/releases/hooks/__tests__/utils.test.ts:230:22
Test (ubuntu-latest / node 18)
Process completed with exit code 1.
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#L74
TypeError: Cannot read properties of undefined (reading 'mockReturnValue') ❯ src/structure/panes/document/documentPanel/header/perspective/__tests__/DocumentHeaderTitle.test.tsx:74: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#L74
TypeError: Cannot read properties of undefined (reading 'mockReturnValue') ❯ src/structure/panes/document/documentPanel/header/perspective/__tests__/DocumentHeaderTitle.test.tsx:74:21
src/structure/panes/document/documentPanel/header/perspective/__tests__/DocumentHeaderTitle.test.tsx > DocumentHeaderTitle > should call useValuePreview hook with the correct arguments: packages/sanity/src/structure/panes/document/documentPanel/header/perspective/__tests__/DocumentHeaderTitle.test.tsx#L74
TypeError: Cannot read properties of undefined (reading 'mockReturnValue') ❯ src/structure/panes/document/documentPanel/header/perspective/__tests__/DocumentHeaderTitle.test.tsx:74:21
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#L74
TypeError: Cannot read properties of undefined (reading 'mockReturnValue') ❯ src/structure/panes/document/documentPanel/header/perspective/__tests__/DocumentHeaderTitle.test.tsx:74: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#L74
TypeError: Cannot read properties of undefined (reading 'mockReturnValue') ❯ src/structure/panes/document/documentPanel/header/perspective/__tests__/DocumentHeaderTitle.test.tsx:74:21
src/structure/panes/document/documentPanel/header/perspective/__tests__/DocumentHeaderTitle.test.tsx > DocumentHeaderTitle > should call useValuePreview hook with the correct arguments: packages/sanity/src/structure/panes/document/documentPanel/header/perspective/__tests__/DocumentHeaderTitle.test.tsx#L74
TypeError: Cannot read properties of undefined (reading 'mockReturnValue') ❯ src/structure/panes/document/documentPanel/header/perspective/__tests__/DocumentHeaderTitle.test.tsx:74:21