axios-mock-middleware is a lightweight middleware for mocking HTTP requests in Node.js applications. It allows developers to easily set up mock responses for testing purposes without making actual network requests.
To install axios-mock-middleware, run the following command:
npm install axios-mock-middleware
- Easy setup and configuration
- Supports various HTTP methods (GET, POST, PUT, DELETE, etc.)
- Allows for custom response handlers
- Works seamlessly with popular HTTP client libraries like Axios
Contributions are welcome! If you find any issues or have suggestions for improvements, please open an issue or submit a pull request.
This project is licensed under the MIT License. See the LICENSE file for more information.