diff --git a/src/type/__tests__/introspection-test.js b/src/type/__tests__/introspection-test.js index ee1b4e6e38..8ac12504b3 100644 --- a/src/type/__tests__/introspection-test.js +++ b/src/type/__tests__/introspection-test.js @@ -1577,13 +1577,12 @@ describe('Introspection', () => { invariant(false, `Called on ${info.parentType.name}::${info.fieldName}`); } - expect(() => - graphqlSync({ - schema, - source, - fieldResolver, - typeResolver, - }), - ).to.not.throw(); + const result = graphqlSync({ + schema, + source, + fieldResolver, + typeResolver, + }); + expect(result).to.not.have.property('errors'); }); });