Closed mpyw closed 2 years ago
🤮 Fixes #47 🤮
The two critical problems are:
axios-mock-adapter
AxiosHeaders
axios
While not a bug, axios@v1 still has a problem for testability. In this PR, I managed to get the test passed via dirty hacks.
🤮 Fixes #47 🤮
The two critical problems are:
axios-mock-adapter
mock definitions must be anAxiosHeaders
object, otherwise the instance reference will be changed.axios
does not exposeAxiosHeaders
constructor.While not a bug, axios@v1 still has a problem for testability. In this PR, I managed to get the test passed via dirty hacks.