Jan Beckmann
Jan Beckmann
Hi, thanks for reporting - I was able to reproduce this with the latest version of create-react-app / react-scripts. It looks like this is related to `react-scripts` defaulting jest's `resetMocks`...
Hi, there are several upstream issues for the `resetMocks` behavior breaking existing test behavior (e.g. https://github.com/facebook/create-react-app/issues/9935). I'm still looking for a feasible solution except for the aforementioned workaround. @alexburlton-sonocent I...
@doutatsu Can you post a more complete example that shows how you invoke `setAuthConfig` / axios? (maybe in a separate issue?)
Hi, thanks for raising this issue. I am currently working on hybrid ESM / CJS support and will release it as v4.6.0 in the next few days.
Days became months, but this is finally published in 4.6.0.
This looks like a duplicate of #44. Currently, I am not aware of any workaround for this, except for splitting up the two await calls in two different functions. But...
This is currently due to how this library works: It takes any requests made, puts them into a queue and then pops the first one (or the specified one) when...
Hi, I agree that there is indeed room for improvement when using multiple axios instances. I'll see how it can be improved over the weekend.
Hi, so I implemented the desired behavior in the [`59-multiple-instances`](https://github.com/knee-cola/jest-mock-axios/tree/59-multiple-instances) branch as a proof of concept. This works, but it adds a significant new problem: If you create separate `axios`...
@rcg-dev I failed to reproduce this error (which isn't that surprising, as `create()` is used in the [tests](https://github.com/knee-cola/jest-mock-axios/blob/master/test/index.spec.ts#L44) for this library as well). Can you do `console.log` to find out...