Hey, first let my thank you for this amazing library, you made axios soooo easy to mock and test! :smile:
Today I encountered a problem when I was trying to mock axios requests which should use a params serializer.
I'm requesting the new Twitch API and request parameters are now &-repeated (source).
That means I should request https://api.twitch.tv/helix/games?user_id=123&user_id=456 instead of https://api.twitch.tv/helix/games?user_id=123,456.
Hey, first let my thank you for this amazing library, you made axios soooo easy to mock and test! :smile:
Today I encountered a problem when I was trying to mock axios requests which should use a params serializer.
I'm requesting the new Twitch API and request parameters are now &-repeated (source). That means I should request
https://api.twitch.tv/helix/games?user_id=123&user_id=456
instead ofhttps://api.twitch.tv/helix/games?user_id=123,456
.Here is my code which request the Twitch API:
And here is my code which should test my request:
And so, since params are serialized as
?user_id=123&user_id=456
the mock is not working.