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
Previous12456Next

3.1.2

Diff

Changelog

Source

[3.1.2] - 2019-10-26

Other

  • Update dependencies
kingjan1999
published 3.1.1 •

Changelog

Source

[3.1.1] - 2019-09-07

Fixed

  • Fixes an upstream bug in synchronous-promise where finally would be called too early (#38)
kingjan1999
published 3.1.0 •

Changelog

Source

[3.1.0] - 2019-07-29

Changed

  • We switched the library for synchronous promises from jest-mock-promise to synchronous-promise. This offers us:

    • Support for finally (#35)
    • Better handling of .catch (#17)
  • The error object used for mockError is now passed directly to catch / reject instead of being cloned beforehand (#14) (Breaking)

Removed

  • You can no longer pass the return value of then and catch to lastPromiseGet. This was an undocumented feature. Use the promise directly instead.
kingjan1999
published 3.0.0 •

Changelog

Source

[3.0.0] - 2019-04-27

Added

  • Allow specifying requests to respond to (#1) - see README
  • Provide mocked cancellation (#30, #32), thanks @VanTanev

Changed

  • Make interface methods non-optional in typings
kingjan1999
published 2.4.0 •

Changelog

Source

[2.4.0] - 2019-04-08

Added

  • Add support for setting default common headers (#16)

Changed

  • Throw more descriptive error messages when trying to respond to no request as described in #3 (throwing an error can be disabled totally by passing a new, third argument silentMode to mockResponse and mockError)
  • Improve type definitions (#25)

Docs

  • Improved docs (#26)
kingjan1999
published 2.3.0 •

Changelog

Source

[2.3.0] - 2019-03-19

Added

  • Add basic support for interceptors (#5, #23)
  • Add support for more methods (patch, head, options) (#11, #12)
  • Add support for axios.all (#21)

Fixed

  • Fix typescript declarations (#10, #15)

Other

  • Fix various README typos (#22)
  • Migrate internal build process from webpack to typescript (#10)
knee-cola
published 2.1.11 •

knee-cola
published 2.1.10 •

knee-cola
published 2.1.9 •

knee-cola
published 2.1.8 •

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