You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a mutation which I can test using the ApolloTestingController. The expectOne and flushData is working properly.
However I have an updateQueries option defined in the mutation, which updates the cache.
This code is unreachable with the test code.
I tried setting up mock cache, by using provider APOLLO_TESTING_CACHE. But the code which updates the cache is never reached via spec test.
Can someone kindly assist me to get to the right direction? TIA
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I have a mutation which I can test using the
ApolloTestingController
. TheexpectOne
andflushData
is working properly.However I have an
updateQueries
option defined in the mutation, which updates the cache.This code is unreachable with the test code.
I tried setting up mock cache, by using provider
APOLLO_TESTING_CACHE
. But the code which updates the cache is never reached via spec test.Can someone kindly assist me to get to the right direction? TIA
Beta Was this translation helpful? Give feedback.
All reactions