moxios
JSON →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).
Resources
packagemoxios ↗