interceptors icon indicating copy to clipboard operation
interceptors copied to clipboard

Patched `fetch` interceptor errors when passing URL instance on node 20

Open rossipedia opened this issue 2 years ago • 1 comments

When using a string as the first argument to fetch(), all is well.

When passing a new URL() instance, an error is thrown.

Screenshot 2023-06-25 at 3 54 55 PM

rossipedia avatar Jun 25 '23 21:06 rossipedia

Hi, @rossipedia. Thanks for letting me know.

Could you try this on msw@next? This looks like something we've fixed there.

kettanaito avatar Jun 26 '23 08:06 kettanaito

Closing due to the lack of response. I consider this fixed. If not, please open a new issue with a reproduction repo. Thanks.

kettanaito avatar Aug 13 '24 14:08 kettanaito