Closed sschneider-ihre-pvs closed 7 months ago
The mock client should throw an error if a query is made but there's no handler defined (code )
You can assert that a request handler is being called if you're using a spy function as the handler, so that might help with knowing whether your client code is calling the handler or not.
Otherwise, there's nothing else in the mock client that could help I'm afraid.
Are you able to debug and step through the unit test - maybe that will help understand what's going on.
Closing due to inactivity - please re-open if you are able to provide more info.
I currently have the problem that an errorhandler seems to be not been called on a faulty graphql request. Is there a way to find the cause why the called counter was not incremented? Are there any debug information available from the mocked client?