# All channels
Sachin D. Shinde@sachin-shinde
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.
How do I test that a mutation is run when using MockedProvider?
Hi! I'm working with React and Apollo. I have a component with a button that fires a mutation when clicked. I would like to write a test that confirms that when the button is clicked, the mutation is fired. Reading the docs on testing mutations there doesn't seem to be a way to…
Is testing with Mock reliable?
I have a doubt in MockedProvider section https://www.apollographql.com/docs/react/development-testing/testing/#mockedprovider If we mock all the graphql request, it will pass the test suite. But, it might loss consistency with actual implementation. Hence, it results bug in…
Testing react components - additional information.
https://www.apollographql.com/docs/react/development-testing/testing/#testing-loading-states The documented example doesn't mention why act errors appear, how to avoid them and also that providing an empty array of mocks results in an error object being defined. The act errors…