jest-mock-axios
Advanced tools
Changelog
[4.6.0] - 2022-04-13
Changelog
[4.5.0] - 2021-12-05
params
in getReqMatching
(with support from @kylorhall, #77)Changelog
[4.4.1] - 2021-09-28
Changelog
[4.4.0] - 2021-04-18
getReqByRegex
by @VictorcorcosChangelog
[4.3.0] - 2021-02-05
isAxiosError
by @mAAdhaTTah (#66)mockError
wil now have isAxiosError
attached by @mAAdhaTTah (#66)Changelog
[4.2.1] - 2020-07-21
interceptors.eject
by @webbushkaChangelog
[4.2.0] - 2020-06-04
throwIfRequested
in CancelToken
now actually throws if requested (not surprising, so not "really" breaking)getReqByMatchUrl
(!52) by @niltonvasquesqueue
(!52) by @niltonvasquesChangelog
[4.1.0] - 2020-05-22
axios(url, [config])
syntaxChangelog
[4.0.0] - 2020-04-28
.cancel
in the code to test now actually cancels (i.e. rejects) the axios call / promise.get
, delete
, head
, and options
now align with these of axios, meaning that the third argument (used to be data
) has been removed.Changelog
[3.2.0] - 2019-12-08
mockResponseFor
and getReqMatching
to support more sophisticated request-responding (#43 by @ThiefMaster)