@@ -19,7 +19,7 @@ describe("getDiff", () => {
19
19
20
20
const result = await getDiff (
21
21
testRemoteSchemaLocation ,
22
- testRemoteSchemaLocation
22
+ testRemoteSchemaLocation ,
23
23
) ;
24
24
expect ( result ) . toBeUndefined ( ) ;
25
25
} ) ;
@@ -38,7 +38,7 @@ describe("getDiff", () => {
38
38
headers : {
39
39
Test : "test" ,
40
40
} ,
41
- }
41
+ } ,
42
42
) ;
43
43
expect ( result ) . toBeUndefined ( ) ;
44
44
} ) ;
@@ -68,7 +68,7 @@ describe("getDiff", () => {
68
68
Test : "right" ,
69
69
} ,
70
70
} ,
71
- }
71
+ } ,
72
72
) ;
73
73
expect ( result ) . toBeUndefined ( ) ;
74
74
} ) ;
@@ -103,7 +103,7 @@ describe("getDiff", () => {
103
103
Test : "right" ,
104
104
} ,
105
105
} ,
106
- }
106
+ } ,
107
107
) ;
108
108
expect ( result ) . toBeUndefined ( ) ;
109
109
} ) ;
@@ -115,7 +115,7 @@ describe("getDiff", () => {
115
115
. reply ( 404 , { } ) ;
116
116
117
117
return expect (
118
- getDiff ( testRemoteSchemaLocation , testRemoteSchemaLocation )
118
+ getDiff ( testRemoteSchemaLocation , testRemoteSchemaLocation ) ,
119
119
) . rejects . toThrow ( / C o u l d n o t o b t a i n i n t r o s p e c t i o n r e s u l t / ) ;
120
120
} ) ;
121
121
@@ -126,7 +126,7 @@ describe("getDiff", () => {
126
126
. reply ( 200 , { invalid : "response" } ) ;
127
127
128
128
return expect (
129
- getDiff ( testRemoteSchemaLocation , testRemoteSchemaLocation )
129
+ getDiff ( testRemoteSchemaLocation , testRemoteSchemaLocation ) ,
130
130
) . rejects . toThrow ( / C o u l d n o t o b t a i n i n t r o s p e c t i o n r e s u l t / ) ;
131
131
} ) ;
132
132
@@ -139,7 +139,7 @@ describe("getDiff", () => {
139
139
it ( "works with exact path to file" , async ( ) => {
140
140
const localSchemaLocation = path . join (
141
141
__dirname ,
142
- "./fixtures/localSchema.graphql"
142
+ "./fixtures/localSchema.graphql" ,
143
143
) ;
144
144
const result = await getDiff ( localSchemaLocation , localSchemaLocation ) ;
145
145
expect ( result ) . toBeUndefined ( ) ;
@@ -148,7 +148,7 @@ describe("getDiff", () => {
148
148
it ( "works with glob pattern" , async ( ) => {
149
149
const localSchemaLocation = path . join (
150
150
__dirname ,
151
- "./fixtures/**/localSchema.graphql"
151
+ "./fixtures/**/localSchema.graphql" ,
152
152
) ;
153
153
const result = await getDiff ( localSchemaLocation , localSchemaLocation ) ;
154
154
expect ( result ) . toBeUndefined ( ) ;
@@ -158,21 +158,21 @@ describe("getDiff", () => {
158
158
return expect (
159
159
getDiff (
160
160
path . join ( __dirname , "invalidLocation" ) ,
161
- path . join ( __dirname , "invalidLocation" )
162
- )
161
+ path . join ( __dirname , "invalidLocation" ) ,
162
+ ) ,
163
163
) . rejects . toThrow (
164
- / U n a b l e t o f i n d a n y G r a p h Q L t y p e d e f i n i t i o n s f o r t h e f o l l o w i n g p o i n t e r s /
164
+ / U n a b l e t o f i n d a n y G r a p h Q L t y p e d e f i n i t i o n s f o r t h e f o l l o w i n g p o i n t e r s / ,
165
165
) ;
166
166
} ) ;
167
167
168
168
it ( "throws error on non-existent files in glob pattern" , ( ) => {
169
169
return expect (
170
170
getDiff (
171
171
path . join ( __dirname , "/**/*.invalidgql" ) ,
172
- path . join ( __dirname , "/**/*.invalidgql" )
173
- )
172
+ path . join ( __dirname , "/**/*.invalidgql" ) ,
173
+ ) ,
174
174
) . rejects . toThrow (
175
- / U n a b l e t o f i n d a n y G r a p h Q L t y p e d e f i n i t i o n s f o r t h e f o l l o w i n g p o i n t e r /
175
+ / U n a b l e t o f i n d a n y G r a p h Q L t y p e d e f i n i t i o n s f o r t h e f o l l o w i n g p o i n t e r / ,
176
176
) ;
177
177
} ) ;
178
178
} ) ;
@@ -181,7 +181,7 @@ describe("getDiff", () => {
181
181
it ( "returns the exact diff between two schemas" , async ( ) => {
182
182
const result = await getDiff (
183
183
path . join ( __dirname , "fixtures/localSchema.graphql" ) ,
184
- path . join ( __dirname , "fixtures/localSchemaDangerous.graphql" )
184
+ path . join ( __dirname , "fixtures/localSchemaDangerous.graphql" ) ,
185
185
) ;
186
186
187
187
expect ( result ) . toBeDefined ( ) ;
@@ -194,7 +194,7 @@ describe("getDiff", () => {
194
194
it ( "returns the diff between two schemas with changed directives" , async ( ) => {
195
195
const result = await getDiff (
196
196
path . join ( __dirname , "fixtures/localSchemaDirective.graphql" ) ,
197
- path . join ( __dirname , "fixtures/localSchemaDirectiveChanged.graphql" )
197
+ path . join ( __dirname , "fixtures/localSchemaDirectiveChanged.graphql" ) ,
198
198
) ;
199
199
200
200
expect ( result ) . toBeDefined ( ) ;
@@ -207,7 +207,7 @@ describe("getDiff", () => {
207
207
it ( "returns dangerous changes" , async ( ) => {
208
208
const result = await getDiff (
209
209
path . join ( __dirname , "fixtures/localSchema.graphql" ) ,
210
- path . join ( __dirname , "fixtures/localSchemaDangerous.graphql" )
210
+ path . join ( __dirname , "fixtures/localSchemaDangerous.graphql" ) ,
211
211
) ;
212
212
213
213
expect ( result ) . toBeDefined ( ) ;
@@ -225,7 +225,7 @@ describe("getDiff", () => {
225
225
it ( "returns breaking changes" , async ( ) => {
226
226
const result = await getDiff (
227
227
path . join ( __dirname , "fixtures/localSchema.graphql" ) ,
228
- path . join ( __dirname , "fixtures/localSchemaBreaking.graphql" )
228
+ path . join ( __dirname , "fixtures/localSchemaBreaking.graphql" ) ,
229
229
) ;
230
230
231
231
expect ( result ) . toBeDefined ( ) ;
@@ -245,7 +245,7 @@ describe("getDiff", () => {
245
245
it ( "returns diff between two unsorted, but otherwise equal schemas, when sorting not enabled" , async ( ) => {
246
246
const result = await getDiff (
247
247
path . join ( __dirname , "fixtures/localSchemaSorted.graphql" ) ,
248
- path . join ( __dirname , "fixtures/localSchemaUnsorted.graphql" )
248
+ path . join ( __dirname , "fixtures/localSchemaUnsorted.graphql" ) ,
249
249
) ;
250
250
251
251
expect ( result ) . toBeDefined ( ) ;
@@ -255,7 +255,7 @@ describe("getDiff", () => {
255
255
const result = await getDiff (
256
256
path . join ( __dirname , "fixtures/localSchemaSorted.graphql" ) ,
257
257
path . join ( __dirname , "fixtures/localSchemaUnsorted.graphql" ) ,
258
- { sortSchema : true }
258
+ { sortSchema : true } ,
259
259
) ;
260
260
261
261
expect ( result ) . toBeUndefined ( ) ;
0 commit comments