Skip to content

Commit 83ee745

Browse files
committed
Add standalone.input.spec.ts and update standalone tests to TDD
1 parent db05491 commit 83ee745

File tree

3 files changed

+386
-26
lines changed

3 files changed

+386
-26
lines changed

packages/plugins/typescript/operations/tests/ts-documents.standalone.import-types.spec.ts

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -108,16 +108,14 @@ describe('TypeScript Operations Plugin - Import Types', () => {
108108
type Exact<T extends { [key: string]: unknown }> = { [K in keyof T]: T[K] };
109109
export type Incremental<T> = T | { [P in keyof T]?: P extends ' $fragmentName' | '__typename' ? T[P] : never };
110110
/** UsersInput Description */
111-
export type UsersInput = {
111+
type UsersInput = {
112112
/** UsersInput from */
113-
from: DateTime;
113+
from?: any;
114114
/** UsersInput to */
115-
to: DateTime;
116-
role: UserRole;
115+
to?: any;
116+
role?: UserRole | null | undefined;
117117
};
118118
119-
export type DateTime = any;
120-
121119
export type UserQueryVariables = Exact<{
122120
id: string;
123121
}>;
@@ -254,16 +252,14 @@ describe('TypeScript Operations Plugin - Import Types', () => {
254252
type Exact<T extends { [key: string]: unknown }> = { [K in keyof T]: T[K] };
255253
export type Incremental<T> = T | { [P in keyof T]?: P extends ' $fragmentName' | '__typename' ? T[P] : never };
256254
/** UsersInput Description */
257-
export type UsersInput = {
255+
type UsersInput = {
258256
/** UsersInput from */
259-
from: DateTime;
257+
from?: any;
260258
/** UsersInput to */
261-
to: DateTime;
262-
role: UserRole;
259+
to?: any;
260+
role?: UserRole | null | undefined;
263261
};
264262
265-
export type DateTime = any;
266-
267263
export type UserQueryVariables = Exact<{
268264
id: string;
269265
}>;

0 commit comments

Comments
 (0)