You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a valid Query that passes with tester.test however when I tester.mock with a fixture, then I'm seeing:
TypeError: Cannot read property 'type' of undefined
at validateFixture (node_modules/easygraphql-tester/utils/fixture.js:50:27)
at validateFixture (node_modules/easygraphql-tester/utils/fixture.js:100:19)
I'm happy to open a PR here, but I'd first want a core dev here to weigh in on what might be the issue and if this would be a valid check to simply add a null check on selectedType
The text was updated successfully, but these errors were encountered:
I have a valid Query that passes with
tester.test
however when Itester.mock
with a fixture, then I'm seeing:I debugged and it appears the issue is related to a simple
name
of typeString
which the mocker has noselectedType
, hence the error at this line: https://github.com/EasyGraphQL/easygraphql-tester/blob/master/utils/fixture.js#L46If I simply add a null check, all my tests pass:
I'm happy to open a PR here, but I'd first want a core dev here to weigh in on what might be the issue and if this would be a valid check to simply add a null check on
selectedType
The text was updated successfully, but these errors were encountered: