Closed
Description
Prerequisites
- I confirm my issue is not in the opened issues
- I confirm the Frequently Asked Questions didn't contain the answer to my issue
Environment check
- I'm using the latest
msw
version - I'm using Node.js version 18 or higher
Node.js version
v18.19.0
Reproduction repository
http://
Reproduction steps
- Install latest version of Undici (6.x)
- Try to run tests
Current behavior
The documentation suggestion to create a jest.polyfills.js
no longer works in Undici version 6.x
All tests are returning the same error:
● Test suite failed to run
ReferenceError: ReadableStream is not defined
27 | Headers: { value: Headers },
28 | FormData: { value: FormData },
> 29 | Request: { value: Request },
| ^
30 | Response: { value: Response },
31 | });
32 |
Expected behavior
An update version of jest.polyfills.js