{"library":"moxios","type":"library","category":null,"description":"Mock axios requests for testing. v0.4.0 is the latest stable release (infrequent updates). Allows you to install a mock adapter into axios, intercept requests, and respond with custom data. Unlike alternatives like axios-mock-adapter, moxios provides a higher-level API with `moxios.wait()` and `moxios.requests.mostRecent()`, making it easier to write integration tests that simulate asynchronous request handling. Requires axios (peer dependency). Limited to browser-like environments (uses XMLHttpRequest).","language":"javascript","status":"maintenance","version":"0.4.0","tags":["javascript","axios","test","testing","mock","mocking"],"last_verified":"Sun Jun 07","install":[{"cmd":"npm install moxios","imports":["import moxios from 'moxios'","const moxios = require('moxios')","moxios.install()"]},{"cmd":"yarn add moxios","imports":[]},{"cmd":"pnpm add moxios","imports":[]}],"homepage":"https://github.com/mzabriskie/moxios#readme","github":"https://github.com/mzabriskie/moxios","docs":null,"changelog":null,"pypi":null,"npm":"moxios","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}