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
{{ message }}
Repository navigation
createJsonQuery created queries is not mockable via msw #534
query created by createQuery + fetch works fine (it mocked good)
But query created by createJsonQuery does not mocked for some reason.
// Error due no handler assignedObject{"cause": [TypeError: fetchfailed],"errorType": "NETWORK","explanation": "Request was failed due to network problems","reason": "fetch failed",}
Notes
Due to shallow github code exploration internally both queries is use fetch with Request. So i suggest it can be issue with headers passed to queries
Reproduce
Could not provide reproduce in stackblitz due to problems with msw integration, but here is github repo that can be connected to codesandbox.io dev container
Activity