Skip to content

Front end request not hitting MSW handlers #798

Answered by gerarddegas
gerarddegas asked this question in Q&A
Discussion options

You must be logged in to vote

I just figured it out. I was mocking fetch in my setupTest.ts file and when I removed the fetch mock and imported whatwg-fetch polyfill my request were routed accordingly. Thanks for prompt response and keep up the awesome work!

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@gerarddegas
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by gerarddegas
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants