Socket
Socket
Sign inDemoInstall

jest-mock-axios

Package Overview
Dependencies
310
Maintainers
2
Versions
60
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install
Previous13456Next

4.6.0

Diff

Changelog

Source

[4.6.0] - 2022-04-13

Changed

  • Experimental support for native ESM (#79)

Added

  • Interceptors are applied now (#82 by @yarilchenko)
kingjan1999
published 4.5.0 •

Changelog

Source

[4.5.0] - 2021-12-05

Added

  • Added support for passing params in getReqMatching (with support from @kylorhall, #77)
kingjan1999
published 4.4.1 •

Changelog

Source

[4.4.1] - 2021-09-28

Other

  • Updated dependencies (Jest 27)
kingjan1999
published 4.4.0 •

Changelog

Source

[4.4.0] - 2021-04-18

Added

  • Added getReqByRegex by @Victorcorcos

Other

  • Updated dependencies
kingjan1999
published 4.3.0 •

Changelog

Source

[4.3.0] - 2021-02-05

Added

  • Added mock for isAxiosError by @mAAdhaTTah (#66)
  • Errors passed to mockError wil now have isAxiosError attached by @mAAdhaTTah (#66)

Other

  • Updated dependencies
kingjan1999
published 4.2.1 •

Changelog

Source

[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
kingjan1999
published 4.2.0 •

Changelog

Source

[4.2.0] - 2020-06-04

Breaking

  • throwIfRequested in CancelToken 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
kingjan1999
published 4.1.0 •

Changelog

Source

[4.1.0] - 2020-05-22

Added

  • Support axios(url, [config]) syntax
kingjan1999
published 4.0.0 •

Changelog

Source

[4.0.0] - 2020-04-28

Changed

  • Using .cancel in the code to test now actually cancels (i.e. rejects) the axios call / promise.

Removed

  • The signatures of get, delete, head, and options now align with these of axios, meaning that the third argument (used to be data) has been removed.
kingjan1999
published 3.2.0 •

Changelog

Source

[3.2.0] - 2019-12-08

Added

  • Added mockResponseFor and getReqMatching to support more sophisticated request-responding (#43 by @ThiefMaster)

Other

  • Updated dependencies
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc