-
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
Update mockLink.ts #11004
Update mockLink.ts #11004
Conversation
@crisys11: Thank you for submitting a pull request! Before we can merge it, you'll need to sign the Apollo Contributor License Agreement here: https://contribute.apollographql.com/ |
👷 Deploy request for apollo-client-docs pending review.Visit the deploys page to approve it
|
|
Hi @crisys11 👋 Can you tell us a bit more about what problem this would be solving for you? Improving our testing utilities is on our tentative 3.9 roadmap, so this is a great time to share any and all feedback on all things Apollo Client testing :) Feel free to drop comments/feedback here or on this pinned issue #9738. |
Hello @alessbell, sometimes we need to re-use mocks, especially when we are working with storybook, so would be great if we can have a configuration params that allow that. Let me know if i was clear or if you need more details 😄 |
That makes perfect sense, @crisys11 😀
How is your team using Storybook with Apollo Client? Are you using this addon, or something custom? |
@alessbell we are using this storybook addon https://storybook.js.org/addons/storybook-addon-apollo-client and then we pass the mocks to the addon in the story |
TIL there's an Apollo Client Storybook addon, that's neat and very good to know :) Thanks for sharing that info about how you're using it @crisys11! The pain point you're experiencing with With respect to the approach you've taken with You could toggle this on/off per test, but the way the While I recognize there's a genuine need for more flexibility here, I think there's more we can do to give developers flexibility and control in the next phase of Apollo Client testing tools. Subscribe to issue #9738 for updates, we'd love to hear your thoughts/feedback as we begin work in this area. |
Checklist: