# All channels
Sachin D. Shinde@sachin-shinde
How to unit test the ApolloProvider from @apollo/react-hooks queries using…
When using MockedProvider in tests, I get the below error is there a different MockedProvider test-utils to test the version of the hooks? Currently, I'm testing it using with the below workaround …
How to test queries which require an authorization token?
Apollo Server Integration testing documentation shows how to test simple queries using createTestClient. If you have a query which requires an authorization token to be run, how do you pass such a token to the query so that can be tested with the above mentioned…
Trouble with MockProvider and polling
Hello all, yesterday I tried to write a story in storybook using a component fetching data with useQuery. It also use startPolling to refresh itself. In order to make it work in storybook I wrapped my story with a MockProvider and a mock. So works well for the first call, but as…
Is there a simpler way to test?
Reading through the full stack tutorial tests it seems there is a lot of boilerplate to get a reliable/consistent test suite up. How necessary/reliable is all of the test setup in the fullstack tutorial? I am using apollo-server-koa, pg, and knex and trying to write integration…
[Possible bug] Testing multiple mutations: second mutation never reached
Hi, I need help with this problem. I've been testing my registration component which uses 3 mutations, 1 for user registration, 1 for authentication to obtain the JWT token, and a local @client third to set the current user into localStorage. The problem is, when I set all the…
How do I get rid of these act console errors"
I'm converting my code to use apollo hooks and I'm running into problems when updating the unit test. I can't get rid of this no matter what I do. I've wrapped it in the act module and updated my version of react to latest to make sure I have the async version.