Skip to content

Releases: wheresrhys/fetch-mock

Avoid uncaught error in promise

15 Oct 21:00
Compare
Choose a tag to compare

In future versions of node this is likely to be thrown as an error, so getting ahead of the game with this commit

redirected

24 Jun 17:48
Compare
Choose a tag to compare

Supports using a __redirectUrl property in order to mock a fetch that has followed redirects

v5.11.2

24 Jun 17:39
Compare
Choose a tag to compare

Fixes bug where flush() was resolving too quickly

v5.11.1

24 Jun 17:36
Compare
Choose a tag to compare

Fixes bug caused by including node-fetch's Headers implementation in browser code

Added flush method

21 May 12:47
Compare
Choose a tag to compare

See API docs for full description

Adds support for custom and multi-value headers

18 May 18:06
Compare
Choose a tag to compare

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()`

12 Apr 16:28
Compare
Choose a tag to compare

Added ability to configure implrmentations of fetch API constructor classes

10 May 09:20
Compare
Choose a tag to compare

Can use custom Promise implementation in .sandbox()

10 May 09:21
Compare
Choose a tag to compare

Added begin:, end:, glob: and express: matchers

10 May 09:23
Compare
Choose a tag to compare