jefflau / jest-fetch-mock

Jest mock for fetch
MIT License
886 stars 118 forks source link

Headers.entries is undefined. #62

Open liximomo opened 6 years ago

liximomo commented 6 years ago

Headers.entries in MDN.

IanVS commented 6 years ago

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 commented 6 years ago

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