You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`await import('graphql').catch((error) => {console.error('[MSW] Failed to parse a GraphQL query: cannot import the "graphql" module. Please make sure you install it if you wish to intercept GraphQL requests. See the original import error below.'); throw error})`+
'Failed to parse a GraphQL query: cannot import the "graphql" module. Please make sure you install it if you wish to intercept GraphQL requests. See the original import error below.',
46
-
)
47
-
throwerror
48
-
})
43
+
/**
44
+
* @note Use `require` to get the "graphql" module here.
45
+
* It has to be scoped to this function because this module leaks to the
46
+
* root export. It has to be `require` because tools like Jest have trouble
47
+
* handling dynamic imports. It gets replaced with a dynamic import on build time.
0 commit comments