jest-mock-axios
Advanced tools
Changelog
[3.1.1] - 2019-09-07
synchronous-promise
where finally
would be called too early (#38)Changelog
[3.1.0] - 2019-07-29
We switched the library for synchronous promises from jest-mock-promise
to synchronous-promise
. This offers us:
finally
(#35).catch
(#17)The error object used for mockError
is now passed directly to catch
/ reject
instead of being cloned beforehand (#14) (Breaking)
then
and catch
to lastPromiseGet
. This was an undocumented feature. Use the promise directly instead.Changelog
[3.0.0] - 2019-04-27
Changelog
[2.4.0] - 2019-04-08
silentMode
to mockResponse
and mockError
)Changelog
[2.3.0] - 2019-03-19
patch
, head
, options
) (#11, #12)axios.all
(#21)