Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add yarn patch for msw for Node v18 native fetch compatibility
- Basically, `msw` can mostly work with node-native `fetch` powered by undici, but it does not currently create its lone export `createServer` with the `FetchInterceptor` that is necessary to intercept `globalFetch` - Clone the library locally, fix this issue, build it locally, and copy the build files into this Yarn patch Upstream, I've started the chain of PRs necessary to fix this: - mswjs/interceptors#283 (migrate to Node 18) - milesforks/msw-interceptors#5 (wip, add native fetch tests) - Last: one line change to msw that I made in our patch here
- Loading branch information