Releases: knee-cola/jest-mock-axios
Releases · knee-cola/jest-mock-axios
v4.4.1
[4.4.1] - 2021-09-28
Other
- Updated dependencies (Jest 27)
v4.4.0
v4.3.0
[4.3.0] - 2021-02-05
Added
- Added mock for
isAxiosError
by @mAAdhaTTah (#66) - Errors passed to
mockError
wil now haveisAxiosError
attached by @mAAdhaTTah (#66)
Other
- Updated dependencies
v4.2.1
[4.2.1] - 2020-07-21
Fixed
- Add mock for
interceptors.eject
by @webbushka
Changed
- Ignore case when matching HTTP methods by @Chris-Thompson-bnsf
v4.2.0
Breaking
throwIfRequested
inCancelToken
now actually throws if requested (not surprising, so not "really" breaking)
Added
- Added
getReqByMatchUrl
(!52) by @niltonvasques - Expose pending requests as
queue
(!52) by @niltonvasques
Fixed
- Fixed some bugs regarding to the cancel implementation
v4.1.0
Features
- Support
axios(url, [config])
syntax
v4.0.0
Features
- Using
.cancel
in the code to test now actually cancels (i.e. rejects) the axios call / promise.
Changes
- The signatures of
get
,delete
,head
, andoptions
now align with these of axios, meaning that the third argument (used to bedata
) has been removed.
v3.2.0
Features
- Added
mockResponseFor
andgetReqMatching
to support more sophisticated request-responding (#43 by @ThiefMaster)
Other
- Updated dependencies
v3.1.2
- Update dependencies