We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 34d0991 commit 64a9162Copy full SHA for 64a9162
src/utilities/__tests__/printSchema-test.ts
@@ -276,6 +276,21 @@ describe('Type System Printer', () => {
276
`);
277
});
278
279
+ it('Prints schema with NO_PROPAGATE error behavior', () => {
280
+ const schema = new GraphQLSchema({
281
+ defaultErrorBehavior: 'NO_PROPAGATE',
282
+ query: new GraphQLObjectType({ name: 'Query', fields: {} }),
283
+ });
284
+
285
+ expectPrintedSchema(schema).to.equal(dedent`
286
+ schema @behavior(onError: NO_PROPAGATE) {
287
+ query: Query
288
+ }
289
290
+ type Query
291
+ `);
292
293
294
it('Omits schema of common names', () => {
295
const schema = new GraphQLSchema({
296
query: new GraphQLObjectType({ name: 'Query', fields: {} }),
0 commit comments