Relative Content

Tag Archive for webaxiosrequestmocking

Mock HTTP Requests in Development Mode

I’m currently working on a project using React and Axios for making HTTP requests. on local dev environment i want to mock these requests to avoid hitting the actual APIs. I have set up some conditional logic to check if the code is running in development mode, if true it mocks the requests