I am using @graphql-tools/webpack-loader
, but there is no matched jest
transformer for that. So, I made it.
write transform rule in jest.config.js
like this:
module.exports = {
// ...
transform: {
"\\.(gql|graphql)$": "jest-transform-graphql-tools",
},
}
Feel free to report issues. 😃