Colin Timmermans
Colin Timmermans
Could you give an example of how you're trying to use axios-mock-adapter?
The problem is that it would be a very large breaking change requiring large effort and having some behavior that can't be migrated. I think it would work better as...
@wateryoma I don't think your problem is related to this issue. Can you post a complete code example so that it's easier to see what's going on?
I'm not very familiar with Angular, so I don't have an answer straight away. But are you sure your problem is related to the piece of code you've pasted? `fetchPosts`...
I can't do much with the little information that you're giving, but likely the code that adds the mock handlers does not get run when running a single test.
This is how axios works, I'd gladly accept a PR that adds this information to the readme.
Hi @prashanth-92! Thanks for your PR, but unfortunately your change doesn't actually introduce per-request delays. The added method instead sets the delay for all requests, so for example: ```js mock.delayInMs(200).onGet("/foo").reply(200);...
Thanks for your pull request! I agree that this would be a useful feature, but if the handler is returned from `reply` it would mean quite a large breaking change...
What if we could have the best of both worlds and instead of returning either the instance *or* the handler, return a proxy that proxies the methods/properties to either the...
Yeah, that makes sense. `delayResponse` should not affect canceling a request.