alexlobera / gatsby-source-sanity-transform-images

Gatsby plugin
https://www.gatsbyjs.org/packages/gatsby-source-sanity-transform-images/
19 stars 7 forks source link

Fix/no format as default #5

Closed eddern closed 4 years ago

eddern commented 4 years ago

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

alexlobera commented 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

eddern commented 4 years ago

@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