Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tests: always use node-fetch to simulate browser fetch (#437)
Since httpRequest is only used in the browser, it doesn't matter much if we are using node-fetch, isomorphic-fetch, undici or node's native fetch. Said that, to avoid tests to fail on Node 18 (which includes a native fetch implementation), we can overwrite the global fetch with node-fetch's implementation.
- Loading branch information