Currently, it is working by waiting an arbitrary amount of time just to make sure the async functions are executed. Which is not a very reliable solution.
I tried to mock the response with the (newData) field, in a similar way as described here (Testing Apollo: How to test if a mutation was called with MockedProvider?) but it does not seem to support (jest.fn) anymore.
Also, I tried to use jest.useFakeTimers/runAllTimers but also the same.
Any thoughts on this?