EasyGraphQL / easygraphql-tester

Test GraphQL queries, mutations and schemas on an easy way! 🚀
https://easygraphql.com/docs/easygraphql-tester/overview
MIT License
313 stars 34 forks source link

Issues with graphql@15.0.0 #136

Closed redmundas closed 3 years ago

redmundas commented 4 years ago

Our tests started to fail after upgrading to graphql@15.0.0:

  ● Test suite failed to run

    Invalid or incomplete introspection result. Ensure that you are passing "data" property of introspection response and no "errors" was returned alongside: undefined

      13 |     },
      14 |   });
    > 15 |   const tester = new EasyGraphQLTester(schema);

my guess is that somewhere introspectionQuery from graphql is used. but in v15 graphql doesn't export introspectionQuery anymore, instead it exports getIntrospectionQuery function

mcshakes commented 4 years ago

Agreed with @edmundas-ramanauskas , I am running into the same error, especially as I try to incorporate this library with mocha/chai. A pity, because it would be perfect for my use case.

ash0080 commented 3 years ago

use yarn and set below in your package.json, then reinstall modules

"resolutions": { "graphql": "^15.4.0" },

estrada9166 commented 3 years ago

A new version has been release with the fix for this! 6.0.0