moxios
moxios copied to clipboard
Mock axios requests for testing
I'm using moxios in two files to mock out API requests and getting tests that seem to randomly fail. For example: ``` import { expect } from 'chai' import moxios...
Seems ```stubRequest``` doesn't work inside ```withMock```. If I use ```moxios.install()```/```uninstall()``` in beforeEach/afterEach ```stubRequest()``` works good. If I use just ```withMock()``` without ```stubRequest``` and then ```javascirpt moxios.wait(... moxios.requests.mostRecent().respondWith(...).then(...) ... ``` it...
Moxios version: 0.4.0 Axios version: 0.27.2 Issue: If a params object with any parameters is passed into an `axios.get` call, the `moxios.wait` function never causes the axios promise to execute....
This PR aims to address the issue #5. As of now. There isn't a way to stub specific method to an entry point. We typically want to distinguish these requests...
Bumps [express](https://github.com/expressjs/express) from 4.17.1 to 4.18.2. Release notes Sourced from express's releases. 4.18.2 Fix regression routing a large stack in a single route deps: [email protected] deps: [email protected] perf: remove unnecessary...
Bumps [qs](https://github.com/ljharb/qs), [body-parser](https://github.com/expressjs/body-parser) and [express](https://github.com/expressjs/express). These dependencies needed to be updated together. Updates `qs` from 6.7.0 to 6.11.0 Changelog Sourced from qs's changelog. 6.11.0 [New] [Fix] stringify: revert 0e903c0; add...
Bumps [decode-uri-component](https://github.com/SamVerschueren/decode-uri-component) from 0.2.0 to 0.2.2. Release notes Sourced from decode-uri-component's releases. v0.2.2 Prevent overwriting previously decoded tokens 980e0bf https://github.com/SamVerschueren/decode-uri-component/compare/v0.2.1...v0.2.2 v0.2.1 Switch to GitHub workflows 76abc93 Fix issue where decode...
Bumps [engine.io](https://github.com/socketio/engine.io) to 6.2.1 and updates ancestor dependency [karma](https://github.com/karma-runner/karma). These dependencies need to be updated together. Updates `engine.io` from 1.8.5 to 6.2.1 Release notes Sourced from engine.io's releases. 6.2.1 :warning:...
Bumps [minimatch](https://github.com/isaacs/minimatch) to 3.1.2 and updates ancestor dependency [mocha](https://github.com/mochajs/mocha). These dependencies need to be updated together. Updates `minimatch` from 3.0.4 to 3.1.2 Commits 699c459 3.1.2 2f2b5ff fix: trim pattern 25d7c0d...