Open alexey2baranov opened 4 years ago
While running in node environment, fetch-intercept
uses whatwg-fetch
pollyfill but since it is not included in dependencies, it is not available and hence generates this error.
https://github.com/werk85/fetch-intercept/blob/develop/src/attach.js#L36
As a workaround, adding whatwg-fetch@3.2.0
as a dev dependency in the main project worked for me.
in Jest test
throws