Comments (5)
@jerelmiller also had an idea here around setting a threshold (min/max) values for response timing
from apollo-client.
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 MockedProvider
unfortunately). Allowing a min/max for response timing allows us to randomize the synthetic latency to better mimic a production environment. This also provides better guarantees that your tests aren't passing purely because the request timing is favorable.
from apollo-client.
Completed via #11605
from apollo-client.
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.
from apollo-client.
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.
For general questions, we recommend using StackOverflow or our discord server.
from apollo-client.
Related Issues (20)
- fetchMore not hitting onError and causing an infinite loop of queries HOT 3
- [Docs] refetchQueries can fetch non active queries HOT 5
- Typescript compilation error in Node context HOT 8
- I try to integrate GraphQL PHP in backend with Apollo client and React in front end) but I get an undefined post response HOT 3
- awaitRefetchQueries to wait for refetch of queries affected by cache eviction after a mutation HOT 5
- ECONNREFUSED Error When Using Apollo Client with NextJS HOT 4
- resetStore can cause to refetch unmounted/inactive queries HOT 11
- GraphQLWsLink doesn't throw ApolloError when network error happens HOT 2
- WebSocket connection to 'ws://localhost:4000/graphql' failed: HOT 3
- useFragment throws an error when a fragment has the @include directive HOT 4
- Deprecate testing utilities introduced in 3.10 in favor of graphql-testing-library HOT 3
- Why does QueryResult not contain extensions but FetchResult does? HOT 4
- MockedResponse variableMatcher shows warning about no more mocked responses for the query HOT 5
- Partial data returned on error after resetting cache HOT 7
- Type error returning `IGNORE` object when using a generic `TypedDocumentNode` mutation HOT 3
- Documentataion: mutaitonHookOptions.ignoreResults requires additional clarification HOT 1
- @apollo/client reactive var state changes are not reflecting across libraries HOT 8
- fetchMore with fetchPolicy: "no-cache" makes two requests HOT 6
- Problem with custom type policy for query caching HOT 19
- App Crash when using ReactNativeFile in apollo upload client to upload file HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from apollo-client.