axios-mock-adapter

Axios adapter that allows to easily mock requests

MIT License

Downloads
6.7M
Stars
3.4K
Committers
74

Bot releases are hidden (Show)

axios-mock-adapter - v1.22.0 Latest Release

Published by marcbachmann about 1 year ago

axios-mock-adapter - v1.21.4

Published by marcbachmann over 1 year ago

  • Fix type error (#368)
  • Test that the types are valid (#369)
axios-mock-adapter - v1.21.3

Published by marcbachmann over 1 year ago

axios-mock-adapter - v1.21.2

Published by ctimmerm about 2 years ago

  • Use AxiosError constructor to create axios errors if available, this restores axios v0.27 compatibility (1d8373148413b63181ad7d98e64aac1d451292e9)
axios-mock-adapter - v1.21.1

Published by ctimmerm over 2 years ago

  • Correctly include UMD builds in npm package
axios-mock-adapter - v1.21.0

Published by ctimmerm over 2 years ago

  • Added support for LINK and UNLINK HTTP methods (a22ffe54d87c9081c14e9135c34dc63410b5693b)
  • Handle params and payloads on delete requests (d0e70817c9cc816efe440ff749c4bc22275ce667)
  • Vendor isBlob package to get rid of arrow function (e1700fdcb7e483a21cc1654c1031fe591db27eac)
axios-mock-adapter - v1.20.0

Published by ctimmerm about 3 years ago

  • Expose originalAdapter in TypeScript types (e6b2d2f6315d4caae0a39992e696b28454811591)
  • Adopt the official behavior of validateStatus and always return an error instance on rejection (43e35b68cd5abdb7a39403a6f741036123f907f8)
  • Ensure that an instance is provided to mock (a326853900967b2f32fc0a873cc5a23d221d8a36)
  • Allow Blob responses (8dd3039ff12da83c153c816188a68aa89df44df9)
axios-mock-adapter -

Published by ctimmerm almost 4 years ago

  • Add toJSON method to axios errors (a14b283)
  • Create onNoMatch=throwException option (a52b450)
  • Support asymmetricMatch in TypeScript (1a22ea2)
  • Handle request with undefined url (78fe012)
  • Add onNoMatch: "throwException" to types (855c8a5)
  • fix responseURL case (95d2aeb)
axios-mock-adapter -

Published by ctimmerm over 4 years ago

  • fix for IE11 (1691b9d)
axios-mock-adapter -

Published by ctimmerm over 4 years ago

  • Don't run bundle size test in prepublish, which prevented unminified umd bundle to be included in the npm package (e047ae2)
axios-mock-adapter -

Published by ctimmerm over 4 years ago

  • Support streams and buffers as a mocked response (b69fc6f)
  • Add request object to response (0ba1ad3)
  • Set isAxiosError property on errors (239ddda)
  • Make response type generic (b493d9c)
  • Add option to pass through unmatched requests to axios (914979f)
  • Add support for asymmetric matchers (0561369)
  • Add Options handler (51eea7c)
  • Add abortRequest and abortRequestOnce (8ccdef2)
  • Use timeoutErrorMessage if provided (262c224)
axios-mock-adapter -

Published by ctimmerm over 5 years ago

  • Add resetHandlers and resetHistory types (456d085)
  • Declare resetHistory method in MockAdapter class (9064f2e)
  • Fix timeout, timeoutOnce, networkError, networkErrorOnce TS typedefs (7bd34fb)
  • Make sure interceptors are only called once when using passThrough (fdb32dd)
  • Correctly handle baseURL when using passthrough (fdb32dd)
axios-mock-adapter -

Published by ctimmerm almost 6 years ago

  • Use a local variable instead of modifying config.url (8abf4a5)
  • Add networkErrorOnce and timeoutOnce (4a0e874)
  • Check for functions with typeof (0901797)
  • Implement redirect mocking (447c64b)
  • Add list as an http verb (3aaa145)
  • Improved TypeScript type definitions (592b400, 027a821, 677f1f1)
axios-mock-adapter -

Published by ctimmerm about 6 years ago

  • support for mocks when an interceptor retries a request (#119) (dd8b660)
  • Implemented history to record all calls to the mock (#124) (2eb55cc)
axios-mock-adapter -

Published by ctimmerm about 6 years ago

  • Fix replyOnce when using a function that returns a response. (93a0ae3c)
axios-mock-adapter -

Published by ctimmerm about 6 years ago

  • Investigating new handlers structure (#115) (84e343e)
axios-mock-adapter -

Published by ctimmerm about 6 years ago

  • Revert #109 (01d24c4)
  • Use the adapter on the MockAdapter instance (#110) (0d315fd)
axios-mock-adapter -

Published by ctimmerm about 6 years ago

  • Existing mock should be overwritten when new mock is defined (#109) (92ca8e3)
  • add support for matchers on the concatenation of the baseURL and url properties (fixes #74) (#107) (a2dd15f)
axios-mock-adapter -

Published by ctimmerm about 6 years ago

  • Use default import in typescript (#103) (df7092a)
axios-mock-adapter -

Published by ctimmerm about 6 years ago

  • publish types (#96) (29e52f4)
  • Add options verb support (#89) (192de7b)