Mocking fetch
Hi folks,
I've been looking for a way to mock outgoing fetch net requests and I've hit a brick wall with everything I could dig up.
I am using
wrangler v3.0.1
and have the following files:
... continues in a comment due to discord message length limits...2 Replies
These are the approaches I've tried
1. jest-fetch-mock - https://www.npmjs.com/package/jest-fetch-mock
2. Using
getMiniflareFetchMock()
: I dug up some documentation and also read https://discord.com/channels/595317990191398933/1078852838102417470/1078852838102417470 , but I get Cannot find name 'getMiniflareFetchMock'
. I might have to configure wrangler/miniflare types, but I can't find any resource on that.
I would appreciate any help.
Thank you!Hey zedevs, did you find anything on this ?