Releases: wheresrhys/fetch-mock
Releases · wheresrhys/fetch-mock
Avoid uncaught error in promise
In future versions of node this is likely to be thrown as an error, so getting ahead of the game with this commit
redirected
Supports using a __redirectUrl
property in order to mock a fetch that has followed redirects
v5.11.2
Fixes bug where flush()
was resolving too quickly
v5.11.1
Fixes bug caused by including node-fetch's Headers implementation in browser code
Added flush method
See API docs for full description
Adds support for custom and multi-value headers
Previously if the rules in a custom matcher function used either a custom Header
implementation or multi vlaue headers the function would fail to match. This fixes that.
With thanks to @winterstefan for the bug report and fix
Log unfulfilled expectations when calling `.done()`
v5.10.0 5.10.0
Added ability to configure implrmentations of fetch API constructor classes
Can use custom Promise implementation in .sandbox()
v5.8.0 5.8.0
Added begin:, end:, glob: and express: matchers
v5.7.0 5.7.0