apollographql / apollo-feature-requests

🧑‍🚀 Apollo Client Feature Requests | (no 🐛 please).
Other
130 stars 7 forks source link

Consider replacing mock link with wildcard-mock-link #298

Open insidewhy opened 3 years ago

insidewhy commented 3 years ago

Apollo's mock link for react is okay for basic testing but needs a lot of improvements, particularly when it comes to dealing with subscriptions. It's also impossible to assert against requests that were made or write mocks that can match requests using arbitrary variables.

wildcard-mock-link is fully compatible but with the following features added:

It's also fully tested and documented.

jpvajda commented 2 years ago

https://github.com/apollographql/apollo-client/issues/9738