馃悰 BUG: fetchMock
does not intercept fetch
in a service binding worker
#5789
Labels
bug
Something that isn't working
Which Cloudflare product(s) does this pertain to?
Workers Vitest Integration
What version(s) of the tool(s) are you using?
3.53.1 [wrangler], 0.2.6 [@cloudflare/vitest-pool-workers], 1.3.0 [vitest]
What version of Node are you using?
20.11.0
What operating system and version are you using?
Mac Ventura 13.5
Describe the Bug
Observed behavior
fetchMock
does not appear to interceptfetch
calls that are internal to another worker that is built and bound as a service binding.Expected behavior
I'd expect
fetchMock
to interceptfetch
calls in a service binding worker.Steps to reproduce
fetch(SOMETHING)
fetchMock
and intercept the previous SOMETHINGactivate()
,disableNetConnect()
. Assert no pending mocksfetch
call.See: https://github.com/thiskevinwang/workers-sdk-5789
Please provide a link to a minimal reproduction
https://github.com/thiskevinwang/workers-sdk-5789
Please provide any relevant error logs
No response
The text was updated successfully, but these errors were encountered: