How to write unit test cases for onCompleted callback function of graphql query

Hi All,

Good Day

I am writing unit test cases for the custom Apollo graphql queries and I was stuck at writing the unit test cases for onCompleted callback function . Any working example or any repo where can I check so that I can replicate the same.

Thanks,
Nikhil.