jest-fetch-mock icon indicating copy to clipboard operation
jest-fetch-mock copied to clipboard

Headers.entries is undefined.

Open liximomo opened this issue 6 years ago • 2 comments

Headers.entries in MDN.

liximomo avatar Apr 17 '18 14:04 liximomo

I believe this is because this project uses isomorphic-fetch, which is still using node-fetch version 1, which does not treat headers as iterables. I'm struggling with this too.

IanVS avatar Jun 12 '18 20:06 IanVS

It seems that using https://github.com/lquixada/cross-fetch as a polyfill has solved my issue.

IanVS avatar Jun 12 '18 20:06 IanVS