Document non-react testing utility - createMockClient
#268
Labels
🧪 testing
Feature requests related to testing
createMockClient
#268
We have a mixed application that uses Apollo Client for both React and non-react code.
Testing React code is easy and convenient given the exported and documented
MockedProvider
utility, however, for our non-react code, there is no clear documentation on the correct way to test usages of the client.I noticed that apollo client exports a mock client from the testing directory
Documenting and supporting this library as a valid form of testing the client would be very useful for those of us testing non-react code; additionally, it would alleviate the need for our own mock implementations or 3rd party libraries.
The text was updated successfully, but these errors were encountered: