Closed skyboyer closed 4 years ago
This change would be very helpful. While it breaks retro-compatibility a bit it feels like a better default than the current behavior.
Alternately if we really want to keep retro-compatibility, we could let the headers
argument be a function that takes the whole header object as input and accepts it or not.
At this point I can't do breaking changes, however support for asymmetric matchers has been implemented in #181, which will allow you to achieve the same thing.
Allowing mock match if request contains extra headers not specified in mock explicitly. https://github.com/ctimmerm/axios-mock-adapter/issues/219 https://github.com/ctimmerm/axios-mock-adapter/issues/214