jefflau / jest-fetch-mock

Jest mock for fetch
MIT License
882 stars 116 forks source link

Add support for stringifiable objects (including URLs) #193

Closed typhoon2099 closed 3 years ago

typhoon2099 commented 3 years ago

Fixes #192. It also goes a bit further and supports anything that is stringifiable, which MDN mentions as valid for fetch.

yinzara commented 3 years ago

LGTM

grahamb commented 3 years ago

Has this been released? I am still getting a TypeError: Unable to parse input as string or Request error when mocking a fetch request with a URL object instead of a string.

typhoon2099 commented 3 years ago

The last release seems to have been in December 2019, version 3.0.3. This PR is in master now, so should be available in the next release.

arumsey commented 1 year ago

It is now January 2023. Any updates on when a new release may be published or should this library be considered EOL?