Closed eddern closed 4 years ago
@eddern thanks a lot for implementing this and sending the PR. I've fixed the issue with the test by adding a mock for GraphQLEnumType
https://github.com/eddern/gatsby-source-sanity-transform-images/blob/292d4790e2af67c22d5b48e86d7e370760183516/__mocks__/gatsby/graphql.js#L3
@alexlbr ah! I was struggelig to understand why GraphQLEnumType was not a constructor
.. Great work on the plugin, btw! I'll keep updating if my usecase requires some additions to it
having some problem making the test run, but this works for me having the plugin in my project locally, but you can see what I changed and try to fix it, and this fixes #5