Running MSW 2.0 on Jest when JSDOM is not used allows us to skip patching undici. For that reason, we should show separate examples of setting up MSW on Jest with and without JSDOM
Completely agree! Thank you for opening a pull request to address this. Jest indeed works great with MSW when running tests in Node.js because it remaps all the globals, preserving them.
Running MSW 2.0 on Jest when JSDOM is not used allows us to skip patching undici. For that reason, we should show separate examples of setting up MSW on Jest with and without JSDOM