Skip to content

chore: add type tests #611

chore: add type tests

chore: add type tests #611

Triggered via push October 29, 2024 18:46
Status Failure
Total duration 1m 59s
Artifacts

ci.yml

on: push
Matrix: prepare
Matrix: size
Matrix: suite
Matrix: types
Fit to window
Zoom out
Zoom in

Annotations

40 errors and 12 warnings
Types (ubuntu-latest, Node 22, TS 5.5): src/helpers/asLink.ts#L152
Argument of type '[] | [FilledContentRelationshipField<string, string, unknown> | EmptyLinkField<"Any"> | FilledLinkToWebField | FilledLinkToMediaField, ...(FilledContentRelationshipField<...> | ... 2 more ... | FilledLinkToMediaField)[]] | PrismicDocument<...>' is not assignable to parameter of type 'SetOptional<PrismicDocument<Record<string, any>, string, string>, "slugs">'.
Types (ubuntu-latest, Node 22, TS 5.5): src/helpers/asLink.ts#L169
Property 'link_type' does not exist on type 'LinkField'.
Types (ubuntu-latest, Node 22, TS 5.5): src/helpers/asLink.ts#L180
Argument of type 'FilledContentRelationshipField<string, string, unknown> | FilledLinkToMediaField' is not assignable to parameter of type 'FilledContentRelationshipField<string, string, unknown>'.
Types (ubuntu-latest, Node 22, TS 5.5): src/lib/resolveMigrationDocumentData.ts#L84
Property 'url' does not exist on type 'RTImageNode | FilledImageFieldImage | LinkToMediaField<"filled">'.
Types (ubuntu-latest, Node 22, TS 5.5): src/lib/resolveMigrationDocumentData.ts#L143
Type 'LinkField<string, string, unknown, "filled"> | undefined' is not assignable to type 'FilledContentRelationshipField<string, string, unknown> | FilledLinkToWebField | FilledLinkToMediaField | undefined'.
Types (ubuntu-latest, Node 22, TS 5.5): src/types/migration/Asset.ts#L76
Type 'string' does not satisfy the constraint 'never'.
Types (ubuntu-latest, Node 22, TS 5.5): src/types/migration/Asset.ts#L78
Type 'string' does not satisfy the constraint 'never'.
Types (ubuntu-latest, Node 22, TS 5.5): src/types/migration/Asset.ts#L91
Type 'string' does not satisfy the constraint 'never'.
Types (ubuntu-latest, Node 22, TS 5.5): test/writeClient-migrate-patch-linkToMedia.test.ts#L95
Type 'LinkToMediaField<"filled">' is not assignable to type 'FilledContentRelationshipField<string, string, unknown> | FilledLinkToMediaField | MigrationLinkToMedia | MigrationContentRelationship | { ...; }'.
Types (ubuntu-latest, Node 22, TS 5.5)
Process completed with exit code 2.
Types (ubuntu-latest, Node 22, TS 5.3): src/helpers/asLink.ts#L152
Argument of type '[] | [FilledContentRelationshipField<string, string, unknown> | EmptyLinkField<"Any"> | FilledLinkToWebField | FilledLinkToMediaField, ...(FilledContentRelationshipField<...> | ... 2 more ... | FilledLinkToMediaField)[]] | PrismicDocument<...>' is not assignable to parameter of type 'SetOptional<PrismicDocument<Record<string, any>, string, string>, "slugs">'.
Types (ubuntu-latest, Node 22, TS 5.3): src/helpers/asLink.ts#L169
Property 'link_type' does not exist on type 'LinkField'.
Types (ubuntu-latest, Node 22, TS 5.3): src/helpers/asLink.ts#L180
Argument of type 'FilledContentRelationshipField<string, string, unknown> | FilledLinkToMediaField' is not assignable to parameter of type 'FilledContentRelationshipField<string, string, unknown>'.
Types (ubuntu-latest, Node 22, TS 5.3): src/lib/resolveMigrationDocumentData.ts#L84
Property 'url' does not exist on type 'RTImageNode | FilledImageFieldImage | LinkToMediaField<"filled">'.
Types (ubuntu-latest, Node 22, TS 5.3): src/lib/resolveMigrationDocumentData.ts#L143
Type 'LinkField<string, string, unknown, "filled"> | undefined' is not assignable to type 'FilledContentRelationshipField<string, string, unknown> | FilledLinkToWebField | FilledLinkToMediaField | undefined'.
Types (ubuntu-latest, Node 22, TS 5.3): src/types/migration/Asset.ts#L76
Type 'string' does not satisfy the constraint 'never'.
Types (ubuntu-latest, Node 22, TS 5.3): src/types/migration/Asset.ts#L78
Type 'string' does not satisfy the constraint 'never'.
Types (ubuntu-latest, Node 22, TS 5.3): src/types/migration/Asset.ts#L91
Type 'string' does not satisfy the constraint 'never'.
Types (ubuntu-latest, Node 22, TS 5.3): test/writeClient-migrate-patch-linkToMedia.test.ts#L95
Type 'LinkToMediaField<"filled">' is not assignable to type 'FilledContentRelationshipField<string, string, unknown> | FilledLinkToMediaField | MigrationLinkToMedia | MigrationContentRelationship | { ...; }'.
Types (ubuntu-latest, Node 22, TS 5.3)
Process completed with exit code 2.
Types (ubuntu-latest, Node 22, TS 5.4): src/helpers/asLink.ts#L152
Argument of type '[] | [FilledContentRelationshipField<string, string, unknown> | EmptyLinkField<"Any"> | FilledLinkToWebField | FilledLinkToMediaField, ...(FilledContentRelationshipField<...> | ... 2 more ... | FilledLinkToMediaField)[]] | PrismicDocument<...>' is not assignable to parameter of type 'SetOptional<PrismicDocument<Record<string, any>, string, string>, "slugs">'.
Types (ubuntu-latest, Node 22, TS 5.4): src/helpers/asLink.ts#L169
Property 'link_type' does not exist on type 'LinkField'.
Types (ubuntu-latest, Node 22, TS 5.4): src/helpers/asLink.ts#L180
Argument of type 'FilledContentRelationshipField<string, string, unknown> | FilledLinkToMediaField' is not assignable to parameter of type 'FilledContentRelationshipField<string, string, unknown>'.
Types (ubuntu-latest, Node 22, TS 5.4): src/lib/resolveMigrationDocumentData.ts#L84
Property 'url' does not exist on type 'RTImageNode | FilledImageFieldImage | LinkToMediaField<"filled">'.
Types (ubuntu-latest, Node 22, TS 5.4): src/lib/resolveMigrationDocumentData.ts#L143
Type 'LinkField<string, string, unknown, "filled"> | undefined' is not assignable to type 'FilledContentRelationshipField<string, string, unknown> | FilledLinkToWebField | FilledLinkToMediaField | undefined'.
Types (ubuntu-latest, Node 22, TS 5.4): src/types/migration/Asset.ts#L76
Type 'string' does not satisfy the constraint 'never'.
Types (ubuntu-latest, Node 22, TS 5.4): src/types/migration/Asset.ts#L78
Type 'string' does not satisfy the constraint 'never'.
Types (ubuntu-latest, Node 22, TS 5.4): src/types/migration/Asset.ts#L91
Type 'string' does not satisfy the constraint 'never'.
Types (ubuntu-latest, Node 22, TS 5.4): test/writeClient-migrate-patch-linkToMedia.test.ts#L95
Type 'LinkToMediaField<"filled">' is not assignable to type 'FilledContentRelationshipField<string, string, unknown> | FilledLinkToMediaField | MigrationLinkToMedia | MigrationContentRelationship | { ...; }'.
Types (ubuntu-latest, Node 22, TS 5.4)
Process completed with exit code 2.
Types (ubuntu-latest, Node 22, TS 5.2): src/helpers/asLink.ts#L152
Argument of type '[] | [FilledContentRelationshipField<string, string, unknown> | EmptyLinkField<"Any"> | FilledLinkToWebField | FilledLinkToMediaField, ...(FilledContentRelationshipField<...> | ... 2 more ... | FilledLinkToMediaField)[]] | PrismicDocument<...>' is not assignable to parameter of type 'SetOptional<PrismicDocument<Record<string, any>, string, string>, "slugs">'.
Types (ubuntu-latest, Node 22, TS 5.2): src/helpers/asLink.ts#L169
Property 'link_type' does not exist on type 'LinkField'.
Types (ubuntu-latest, Node 22, TS 5.2): src/helpers/asLink.ts#L180
Argument of type 'FilledContentRelationshipField<string, string, unknown> | FilledLinkToMediaField' is not assignable to parameter of type 'FilledContentRelationshipField<string, string, unknown>'.
Types (ubuntu-latest, Node 22, TS 5.2): src/lib/resolveMigrationDocumentData.ts#L84
Property 'url' does not exist on type 'RTImageNode | FilledImageFieldImage | LinkToMediaField<"filled">'.
Types (ubuntu-latest, Node 22, TS 5.2): src/lib/resolveMigrationDocumentData.ts#L143
Type 'LinkField<string, string, unknown, "filled"> | undefined' is not assignable to type 'FilledContentRelationshipField<string, string, unknown> | FilledLinkToWebField | FilledLinkToMediaField | undefined'.
Types (ubuntu-latest, Node 22, TS 5.2): src/types/migration/Asset.ts#L76
Type 'string' does not satisfy the constraint 'never'.
Types (ubuntu-latest, Node 22, TS 5.2): src/types/migration/Asset.ts#L78
Type 'string' does not satisfy the constraint 'never'.
Types (ubuntu-latest, Node 22, TS 5.2): src/types/migration/Asset.ts#L91
Type 'string' does not satisfy the constraint 'never'.
Types (ubuntu-latest, Node 22, TS 5.2): test/writeClient-migrate-patch-linkToMedia.test.ts#L95
Type 'LinkToMediaField<"filled">' is not assignable to type 'FilledContentRelationshipField<string, string, unknown> | FilledLinkToMediaField | MigrationLinkToMedia | MigrationContentRelationship | { ...; }'.
Types (ubuntu-latest, Node 22, TS 5.2)
Process completed with exit code 2.
Prepare (ubuntu-latest, Node 16)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/setup-node@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
Prepare (ubuntu-latest, Node 20)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/setup-node@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
Prepare (ubuntu-latest, Node 18)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/setup-node@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
Prepare (ubuntu-latest, Node 22)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/setup-node@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
Types (ubuntu-latest, Node 22, TS 5.5)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/setup-node@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
Types (ubuntu-latest, Node 22, TS 5.3)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/setup-node@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
Types (ubuntu-latest, Node 22, TS 5.4)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/setup-node@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
Types (ubuntu-latest, Node 22, TS 5.2)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/setup-node@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
Suite (ubuntu-latest, Node 16)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/setup-node@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
Suite (ubuntu-latest, Node 18)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/setup-node@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
Suite (ubuntu-latest, Node 20)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/setup-node@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
Suite (ubuntu-latest, Node 22)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/setup-node@v3, codecov/codecov-action@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/