I have an axios api , for which I am setting the default timeout of 5000ms (5 secs).
I would like to unit test a stub which should throw me the timeout exception/ promise rejection with the error code ECONNABORTED.
But whenever I try to call the api after mocking it using moxios, I get this error : Timeout - Async callback was not invoked within timeout specified by jasmine.DEFAULT_TIMEOUT_INTERVAL.
PS: using Jest as my test running.