-
-
Notifications
You must be signed in to change notification settings - Fork 133
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ReadableStream cannot be properly polyfilled in this engine #475
Comments
Hey, @davidtaboas. Thanks for reporting this. Please, could you share a reproduction repository for this? It looks like you are running your code in an environment that doesn't correctly implement the global Fetch API (not sure why |
@kettanaito ok. i will try it. I'm using msw in a jsdom environment with jest, using undici to polyfill fetch. |
Take a look at the Jest+MSW usage example. It may help you spot what may be off. Why do you need to polyfill fetch? What version of Node.js are you using? Make sure to use Node.js v18+ with MSW 2.0. |
@kettanaito I did, thanks. But it was no help. However, I removed "core-js" import from my jest.polyfills.js and now it seems to work properly. I will double check a few more times. Meanwhile this issue can still closed. Thanks! |
The issue is that Jest depends on |
Using msw 2.0.2 I'm getting the following error:
If i change in this line
interceptors/src/interceptors/fetch/index.ts
Line 122 in 3258f5c
to this, works properly:
The text was updated successfully, but these errors were encountered: