You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This issue originated with the axis0.21.1 release for me. Currently I'm using a workaround with patch-package with the change at src/handle_request.js:
The above code checks if the base URL and the underlying URL match, if they do, it replaces it with just the URL and removes the base URL. Not sure why we do this.
If we comment the if clause out, the above scenario works with and without a base URL and all the tests pass (there is a comment specifying that this if clause is not tested).
Another work around is if we add the whole URL along with the base URL, your scenario works:
Issue: Adapter can't match URL if it contains part of base URL
Example: Base URL is
/app
and url is/appliance
mock won't match 😞above code will output
Link for quick check: https://codesandbox.io/s/lucid-goodall-0qu35?file=/src/index.js
Is it a known issue with known workaround? 🤔
The text was updated successfully, but these errors were encountered: