Skip to content

feat(core): create references from version documents and new version documents. #29177

feat(core): create references from version documents and new version documents.

feat(core): create references from version documents and new version documents. #29177

Triggered via pull request January 18, 2025 15:10
Status Failure
Total duration 3m 39s
Artifacts

test.yml

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

Annotations

14 errors and 8 warnings
src/core/studio/copyPaste/__test__/transferValue.test.ts: packages/sanity/src/core/studio/copyPaste/__test__/schema/index.ts#L49
TypeError: (0 , createSchema) is not a function ❯ src/core/studio/copyPaste/__test__/schema/index.ts:49:23 ❯ src/core/studio/copyPaste/__test__/transferValue.test.ts:9: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/util/draftUtils.ts#L66
TypeError: Cannot read properties of undefined (reading 'startsWith') ❯ isVersionId src/core/util/draftUtils.ts:66:13 ❯ getPublishedId src/core/util/draftUtils.ts:136:7 ❯ useDocumentVersions src/core/releases/hooks/useDocumentVersions.tsx:31:23 ❯ DocumentPerspectiveList2 src/structure/panes/document/documentPanel/header/perspective/DocumentPerspectiveList.tsx:85:36 ❯ renderWithHooks ../../node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom.development.js:15486:18 ❯ updateFunctionComponent ../../node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom.development.js:19617:20 ❯ updateSimpleMemoComponent ../../node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom.development.js:19454:10 ❯ updateMemoComponent ../../node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom.development.js:19303:14 ❯ beginWork ../../node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom.development.js:21712:16 ❯ beginWork$1 ../../node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom.development.js:27465:14
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/util/draftUtils.ts#L66
TypeError: Cannot read properties of undefined (reading 'startsWith') ❯ isVersionId src/core/util/draftUtils.ts:66:13 ❯ getPublishedId src/core/util/draftUtils.ts:136:7 ❯ useDocumentVersions src/core/releases/hooks/useDocumentVersions.tsx:31:23 ❯ DocumentPerspectiveList2 src/structure/panes/document/documentPanel/header/perspective/DocumentPerspectiveList.tsx:85:36 ❯ renderWithHooks ../../node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom.development.js:15486:18 ❯ updateFunctionComponent ../../node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom.development.js:19617:20 ❯ updateSimpleMemoComponent ../../node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom.development.js:19454:10 ❯ updateMemoComponent ../../node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom.development.js:19303:14 ❯ beginWork ../../node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom.development.js:21712:16 ❯ beginWork$1 ../../node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom.development.js:27465:14
src/structure/panes/document/documentPanel/header/perspective/__tests__/DocumentPerspectiveList.test.tsx > DocumentPerspectiveList > disabled chips > should disable the "Published" chip when there is no published document and not live edit: packages/sanity/src/core/util/draftUtils.ts#L66
TypeError: Cannot read properties of undefined (reading 'startsWith') ❯ isVersionId src/core/util/draftUtils.ts:66:13 ❯ getPublishedId src/core/util/draftUtils.ts:136:7 ❯ useDocumentVersions src/core/releases/hooks/useDocumentVersions.tsx:31:23 ❯ DocumentPerspectiveList2 src/structure/panes/document/documentPanel/header/perspective/DocumentPerspectiveList.tsx:85:36 ❯ renderWithHooks ../../node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom.development.js:15486:18 ❯ updateFunctionComponent ../../node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom.development.js:19617:20 ❯ updateSimpleMemoComponent ../../node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom.development.js:19454:10 ❯ updateMemoComponent ../../node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom.development.js:19303:14 ❯ beginWork ../../node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom.development.js:21712:16 ❯ beginWork$1 ../../node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom.development.js:27465:14
src/structure/panes/document/documentPanel/header/perspective/__tests__/DocumentPerspectiveList.test.tsx > DocumentPerspectiveList > disabled chips > should enable the "Published" chip when there is no published document and IS live edit: packages/sanity/src/core/util/draftUtils.ts#L66
TypeError: Cannot read properties of undefined (reading 'startsWith') ❯ isVersionId src/core/util/draftUtils.ts:66:13 ❯ getPublishedId src/core/util/draftUtils.ts:136:7 ❯ useDocumentVersions src/core/releases/hooks/useDocumentVersions.tsx:31:23 ❯ DocumentPerspectiveList2 src/structure/panes/document/documentPanel/header/perspective/DocumentPerspectiveList.tsx:85:36 ❯ renderWithHooks ../../node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom.development.js:15486:18 ❯ updateFunctionComponent ../../node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom.development.js:19617:20 ❯ updateSimpleMemoComponent ../../node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom.development.js:19454:10 ❯ updateMemoComponent ../../node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom.development.js:19303:14 ❯ beginWork ../../node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom.development.js:21712:16 ❯ beginWork$1 ../../node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom.development.js:27465:14
src/structure/panes/document/documentPanel/header/perspective/__tests__/DocumentPerspectiveList.test.tsx > DocumentPerspectiveList > disabled chips > should enable the "Published" chip when the document is "liveEdit": packages/sanity/src/core/util/draftUtils.ts#L66
TypeError: Cannot read properties of undefined (reading 'startsWith') ❯ isVersionId src/core/util/draftUtils.ts:66:13 ❯ getPublishedId src/core/util/draftUtils.ts:136:7 ❯ useDocumentVersions src/core/releases/hooks/useDocumentVersions.tsx:31:23 ❯ DocumentPerspectiveList2 src/structure/panes/document/documentPanel/header/perspective/DocumentPerspectiveList.tsx:85:36 ❯ renderWithHooks ../../node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom.development.js:15486:18 ❯ updateFunctionComponent ../../node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom.development.js:19617:20 ❯ updateSimpleMemoComponent ../../node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom.development.js:19454:10 ❯ updateMemoComponent ../../node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom.development.js:19303:14 ❯ beginWork ../../node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom.development.js:21712:16 ❯ beginWork$1 ../../node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom.development.js:27465:14
Test (ubuntu-latest / node 20)
Process completed with exit code 1.
src/core/studio/copyPaste/__test__/transferValue.test.ts: packages/sanity/src/core/studio/copyPaste/__test__/schema/index.ts#L49
TypeError: (0 , createSchema) is not a function ❯ src/core/studio/copyPaste/__test__/schema/index.ts:49:23 ❯ src/core/studio/copyPaste/__test__/transferValue.test.ts:9: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/util/draftUtils.ts#L66
TypeError: Cannot read properties of undefined (reading 'startsWith') ❯ isVersionId src/core/util/draftUtils.ts:66:13 ❯ getPublishedId src/core/util/draftUtils.ts:136:7 ❯ useDocumentVersions src/core/releases/hooks/useDocumentVersions.tsx:31:23 ❯ DocumentPerspectiveList2 src/structure/panes/document/documentPanel/header/perspective/DocumentPerspectiveList.tsx:85:36 ❯ renderWithHooks ../../node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom.development.js:15486:18 ❯ updateFunctionComponent ../../node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom.development.js:19617:20 ❯ updateSimpleMemoComponent ../../node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom.development.js:19454:10 ❯ updateMemoComponent ../../node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom.development.js:19303:14 ❯ beginWork ../../node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom.development.js:21712:16 ❯ beginWork$1 ../../node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom.development.js:27465:14
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/util/draftUtils.ts#L66
TypeError: Cannot read properties of undefined (reading 'startsWith') ❯ isVersionId src/core/util/draftUtils.ts:66:13 ❯ getPublishedId src/core/util/draftUtils.ts:136:7 ❯ useDocumentVersions src/core/releases/hooks/useDocumentVersions.tsx:31:23 ❯ DocumentPerspectiveList2 src/structure/panes/document/documentPanel/header/perspective/DocumentPerspectiveList.tsx:85:36 ❯ renderWithHooks ../../node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom.development.js:15486:18 ❯ updateFunctionComponent ../../node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom.development.js:19617:20 ❯ updateSimpleMemoComponent ../../node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom.development.js:19454:10 ❯ updateMemoComponent ../../node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom.development.js:19303:14 ❯ beginWork ../../node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom.development.js:21712:16 ❯ beginWork$1 ../../node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom.development.js:27465:14
src/structure/panes/document/documentPanel/header/perspective/__tests__/DocumentPerspectiveList.test.tsx > DocumentPerspectiveList > disabled chips > should disable the "Published" chip when there is no published document and not live edit: packages/sanity/src/core/util/draftUtils.ts#L66
TypeError: Cannot read properties of undefined (reading 'startsWith') ❯ isVersionId src/core/util/draftUtils.ts:66:13 ❯ getPublishedId src/core/util/draftUtils.ts:136:7 ❯ useDocumentVersions src/core/releases/hooks/useDocumentVersions.tsx:31:23 ❯ DocumentPerspectiveList2 src/structure/panes/document/documentPanel/header/perspective/DocumentPerspectiveList.tsx:85:36 ❯ renderWithHooks ../../node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom.development.js:15486:18 ❯ updateFunctionComponent ../../node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom.development.js:19617:20 ❯ updateSimpleMemoComponent ../../node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom.development.js:19454:10 ❯ updateMemoComponent ../../node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom.development.js:19303:14 ❯ beginWork ../../node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom.development.js:21712:16 ❯ beginWork$1 ../../node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom.development.js:27465:14
src/structure/panes/document/documentPanel/header/perspective/__tests__/DocumentPerspectiveList.test.tsx > DocumentPerspectiveList > disabled chips > should enable the "Published" chip when there is no published document and IS live edit: packages/sanity/src/core/util/draftUtils.ts#L66
TypeError: Cannot read properties of undefined (reading 'startsWith') ❯ isVersionId src/core/util/draftUtils.ts:66:13 ❯ getPublishedId src/core/util/draftUtils.ts:136:7 ❯ useDocumentVersions src/core/releases/hooks/useDocumentVersions.tsx:31:23 ❯ DocumentPerspectiveList2 src/structure/panes/document/documentPanel/header/perspective/DocumentPerspectiveList.tsx:85:36 ❯ renderWithHooks ../../node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom.development.js:15486:18 ❯ updateFunctionComponent ../../node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom.development.js:19617:20 ❯ updateSimpleMemoComponent ../../node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom.development.js:19454:10 ❯ updateMemoComponent ../../node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom.development.js:19303:14 ❯ beginWork ../../node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom.development.js:21712:16 ❯ beginWork$1 ../../node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom.development.js:27465:14
src/structure/panes/document/documentPanel/header/perspective/__tests__/DocumentPerspectiveList.test.tsx > DocumentPerspectiveList > disabled chips > should enable the "Published" chip when the document is "liveEdit": packages/sanity/src/core/util/draftUtils.ts#L66
TypeError: Cannot read properties of undefined (reading 'startsWith') ❯ isVersionId src/core/util/draftUtils.ts:66:13 ❯ getPublishedId src/core/util/draftUtils.ts:136:7 ❯ useDocumentVersions src/core/releases/hooks/useDocumentVersions.tsx:31:23 ❯ DocumentPerspectiveList2 src/structure/panes/document/documentPanel/header/perspective/DocumentPerspectiveList.tsx:85:36 ❯ renderWithHooks ../../node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom.development.js:15486:18 ❯ updateFunctionComponent ../../node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom.development.js:19617:20 ❯ updateSimpleMemoComponent ../../node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom.development.js:19454:10 ❯ updateMemoComponent ../../node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom.development.js:19303:14 ❯ beginWork ../../node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom.development.js:21712:16 ❯ beginWork$1 ../../node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom.development.js:27465:14
Test (ubuntu-latest / node 18)
Process completed with exit code 1.
Test (ubuntu-latest / node 20)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
Test (ubuntu-latest / node 20)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
Test (ubuntu-latest / node 20)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
Test (ubuntu-latest / node 18)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
Test (ubuntu-latest / node 18)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
Test (ubuntu-latest / node 18)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
Test (ubuntu-latest / node 20)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
Test (ubuntu-latest / node 18)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636