New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix type error on parsing enums #5457
Conversation
🦋 Changeset detectedLatest commit: a7d1d8c The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Maybe It would be better to change the type of enum value to
|
I can reproduce cometkim/gatsby-plugin-typegen#143 in gatsby-starter and confirmed this will fix the issue, I did test via manipulating node_modules directly |
@cometkim Thanks for the PR :) For changing enum values to |
ignoreEnumValuesFromSchema: false, | ||
}); | ||
|
||
expect(result).not.toEqual({ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oops, sorry about this. this test case doesn't make sense
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@cometkim could you create another PR to fix that? :)
See #5432
See also cometkim/gatsby-plugin-typegen#143