You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Yes, I had to polyfill fetch in Safari and PhantomJS. I'm using Karma with webpack and I had to require file with isomorphic-fetch before requiring any spec files.
I had the same error, but when using a dep package that itself used fetch (isomorphic-fetch).
The solution in my case was import/require order: be sure to load fetch-mock after anything that polyfills fetch.
I have a strange error happening in 1.9 PhantomJS and latest Safari environments
pointing me to
fetch-mock/src/fetch-mock.js
Line 78 in b0ca36c
I use it in my test like this
In Chrome, Firefox everything seems to work well.
Why could it happen and are there any advices how to debug it properly?
The text was updated successfully, but these errors were encountered: