refactor: document-builder namespace #1795
Annotations
4 errors
|
Run pnpm test:unit -- --environment jsdom:
src/generator/generator/generate.test.ts#L40
Error: Snapshot `kitchen-sink generated modules > modules/methods-document.ts 1` mismatched
- Expected
+ Received
@@ -3,11 +3,11 @@
import * as $$SelectionSets from './selection-sets.js'
export interface Document<$Context extends $$Utilities.Context> {
<$Document>(
document: $$Utilities.ExactNonEmpty<$Document, $$SelectionSets.$Document<$Context['scalars']>>,
- ): $$Utilities.DocumentRunner<
+ ): $$Utilities.DocumentBuilder.DocumentRunner<
$Context,
$$Schema.Schema,
// @ts-expect-error We use Exact instead of constraint on this function. TypeScript does not see that as
// Satisfying the constraint on the DocumentRunner type.
$Document
❯ src/generator/generator/generate.test.ts:40:21
|
Run pnpm test:unit -- --environment jsdom:
src/generator/generator/generate.test.ts#L69
Error: Snapshot `root-types-mapped 2` mismatched
- Expected
+ Received
@@ -1,9 +1,8 @@
"import * as $$SelectionSets from "./selection-sets.js";
import * as $$Schema from "./schema.js";
- import type * as $$Utilities from "graffle/utilities-for-generated";
- import type { InferResult } from "graffle/schema";
+ import type * as $$Utilities from "graffle/utilities-for-generated";
export interface QueryRootMethods<$Context extends $$Utilities.Context> {
$batch: $$Utilities.ClientTransports.PreflightCheck<
$Context,
<$SelectionSet>(
@@ -13,11 +12,11 @@
>,
) => Promise<
(null | {}) &
$$Utilities.HandleOutput<
$Context,
- InferResult.OperationQuery<
+ $$Utilities.DocumentBuilder.InferResult.OperationQuery<
$$Utilities.AssertExtendsObject<$SelectionSet>,
$$Schema.Schema<$Context["scalars"]>
>
>
>
@@ -43,11 +42,11 @@
>,
) => Promise<
(null | {}) &
$$Utilities.HandleOutputGraffleRootField<
$Context,
- InferResult.OperationQuery<
+ $$Utilities.DocumentBuilder.InferResult.OperationQuery<
{ id: $SelectionSet },
$$Schema.Schema<$Context["scalars"]>
>,
"id"
>
❯ src/generator/generator/generate.test.ts:69:25
|
Run pnpm test:unit -- --environment jsdom
Process completed with exit code 1.
|
Loading