-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Testing utilities] Custom fetch implementation via context #11710
Comments
@jerelmiller also had an idea here around setting a threshold (min/max) values for response timing |
Yes! To write it out, we want to mimic a real client/server interaction as much as possible, which means that there will always be variable latency in the request. We absolutely DON'T want the mocked request to be synchronous because a network request is always asynchronous (something we see too often in |
Completed via #11605 |
Do you have any feedback for the maintainers? Please tell us by taking a one-minute survey. Your responses will help us understand Apollo Client usage and allow us to serve you better. |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Issue Description
@phryneas had a great idea here: instead of requiring users to use an test env-specific terminating link of
SchemaLink
, use a customfetch
implementation via context that effectively turnsHttpLink
into aSchemaLink
.Link to Reproduction
N/A
Reproduction Steps
No response
@apollo/client
versionN/A
The text was updated successfully, but these errors were encountered: