Easiest way to mock fetch
The main difference with fetch-mock or fetch-mock-jest is that they consider
fetch just as a function call instead of function that calls API endpoints.
vi-fetch provides matchers to test calls to endpoints instead of simply function calls.
For example, we consider an endpoint to be a part of URL until the first
?: query is an argument to an endpoint, just like
body, - that's why we provide matchers like
Read full docs on GitHub.