feat: support doc type used as field type #116
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.
|