I'm trying to test a component that imports a .gql
file. When I try to build the component in a Jest file, I receive this error:
( object. anonymous function(module exports require __dirname __filename global jest) {
query getUser {
ˆˆˆˆˆˆˆ
<script>
import GET_USER from 'PATH';
ˆ
Does anyone have any idea of how to ignore the import? Because I don't need to test the GraphQL call.