apollographql / apollo-client

:rocket:  A fully-featured, production ready caching GraphQL client for every UI framework and GraphQL server.
https://apollographql.com/client
MIT License
19.38k stars 2.66k forks source link

Feedback for schema-driven testing utilities #11817

Open alessbell opened 6 months ago

alessbell commented 6 months ago

Issue Description

Starting with Apollo Client 3.10.0, we introduced new schema-driven testing APIs.

These utilities allow you to create a test schema with scalar mocks that can be used to mock fetch or used in combination with MSW to write integration- or E2E-style tests that also test the link chain. See the documentation for details. We've marked these APIs as experimental for this release to allow room for feedback and changes before we stabilize this API in 3.11.0.

If you would like to provide feedback or suggestions for improvement, please drop a comment below!

Link to Reproduction

N/A

Reproduction Steps

No response

@apollo/client version

N/A

alessbell commented 6 months ago

One piece of feedback from @yaboi:

Is there a way to access a schema not available locally? Maybe with codegen or something?