@@ -41,6 +41,108 @@ exports[`client:codegen generates operation IDs for swift files when flag is set
4141} "
4242` ;
4343
44+ exports [` client:codegen writes Flow types to a custom directory next to sources when output is set 1` ] = `
45+ "/* @flow */
46+ /* eslint-disable */
47+ // @generated
48+ // This file was automatically generated and should not be edited.
49+
50+ // ====================================================
51+ // GraphQL query operation: SimpleQuery
52+ // ====================================================
53+
54+ export type SimpleQuery = {
55+ hello : string
56+ } ;/* @flow */
57+ /* eslint-disable */
58+ // @generated
59+ // This file was automatically generated and should not be edited.
60+
61+ //==============================================================
62+ // START Enums and Input Objects
63+ //==============================================================
64+
65+ //==============================================================
66+ // END Enums and Input Objects
67+ //=============================================================="
68+ ` ;
69+
70+ exports [` client:codegen writes TypeScript global types to __generated__/globalTypes.ts when globalTypesFile is not set 1` ] = `
71+ "/* tslint:disable */
72+ /* eslint-disable */
73+ // @generated
74+ // This file was automatically generated and should not be edited.
75+
76+ //==============================================================
77+ // START Enums and Input Objects
78+ //==============================================================
79+
80+ export enum SomeEnum {
81+ bar = \\" bar\\ " ,
82+ foo = \\" foo\\ " ,
83+ }
84+
85+ //==============================================================
86+ // END Enums and Input Objects
87+ //==============================================================
88+ "
89+ ` ;
90+
91+ exports [` client:codegen writes TypeScript global types to a custom path when globalTypesFile is set 1` ] = `
92+ "/* tslint:disable */
93+ /* eslint-disable */
94+ // @generated
95+ // This file was automatically generated and should not be edited.
96+
97+ import { SomeEnum } from \\ "./../../__foo__/bar\\ ";
98+
99+ // ====================================================
100+ // GraphQL query operation: SimpleQuery
101+ // ====================================================
102+
103+ export interface SimpleQuery {
104+ someEnum : SomeEnum ;
105+ }
106+ "
107+ ` ;
108+
109+ exports [` client:codegen writes TypeScript global types to a custom path when globalTypesFile is set 2` ] = `
110+ "/* tslint:disable */
111+ /* eslint-disable */
112+ // @generated
113+ // This file was automatically generated and should not be edited.
114+
115+ //==============================================================
116+ // START Enums and Input Objects
117+ //==============================================================
118+
119+ export enum SomeEnum {
120+ bar = \\" bar\\ " ,
121+ foo = \\" foo\\ " ,
122+ }
123+
124+ //==============================================================
125+ // END Enums and Input Objects
126+ //==============================================================
127+ "
128+ ` ;
129+
130+ exports [` client:codegen writes TypeScript types into a __generated__ directory next to sources when no output is set 1` ] = `
131+ "/* tslint:disable */
132+ /* eslint-disable */
133+ // @generated
134+ // This file was automatically generated and should not be edited.
135+
136+ // ====================================================
137+ // GraphQL query operation: SimpleQuery
138+ // ====================================================
139+
140+ export interface SimpleQuery {
141+ hello : string ;
142+ }
143+ "
144+ ` ;
145+
44146exports [` client:codegen writes exact Flow types when the useFlowExactObjects flag is set 1` ] = `
45147"/* @flow */
46148/* eslint-disable */
0 commit comments