Skip to content

feat: support doc type used as field type #116

feat: support doc type used as field type

feat: support doc type used as field type #116

Triggered via pull request February 13, 2026 07:54
Status Failure
Total duration 2m 33s
Artifacts

test.yml

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

Annotations

4 errors
Test (ubuntu-latest)
Process completed with exit code 1.
src/typescript/__tests__/typeGenerator.test.ts > TypeGenerator > regression: support using document type as field type: src/typescript/__tests__/typeGenerator.test.ts#L1040
Error: Snapshot `TypeGenerator > regression: support using document type as field type 1` mismatched - Expected + Received @@ -18,16 +18,16 @@ export declare const internalGroqTypeReferenceTo: unique symbol; // Source: ../../../../../src/queries.ts // Variable: DOC_TYPE_SPREAD_FIELD_QUERY // Query: *[_type == "page"].pageContent[]{...}[].title - export type DOC_TYPE_SPREAD_FIELD_QUERY_RESULT = Array<string>; + export type DOC_TYPE_SPREAD_FIELD_QUERY_RESULT = Array<unknown>; // Source: ../../../../../src/queries.ts // Variable: DOC_TYPE_FIELD_QUERY // Query: *[_type == "page"].pageContent[].title - export type DOC_TYPE_FIELD_QUERY_RESULT = Array<string>; + export type DOC_TYPE_FIELD_QUERY_RESULT = Array<null>; // Query TypeMap import "@sanity/client"; declare module "@sanity/client" { interface SanityQueries { ❯ src/typescript/__tests__/typeGenerator.test.ts:1040:25
Test (windows-latest)
The strategy configuration was canceled because "release.ubuntu-latest" failed
Test (windows-latest)
The operation was canceled.