This is a simple utility function you can use to mock and unit test your Apollo Client cache update functions.
To use, simple run yarn add createapollocacheupdatemock
or npm i createapollocacheupdatemock
, import the function and use in your tests!