Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow magic proxy to be used from Jest (#683)
When running in Jest, `require("undici")` inside a worker thread fails. Instead, we need to call `createRequire()` first, using the `__filename` of the worker host. The `require` function returned from that can then be used to `require("undici")`.
- Loading branch information