You can try to play with mocking $apollo object on mounting. I've added this section to Vue Apollo docs recently: vue-apollo.netlify.com/guide/testi...
Please let me know if it's useful for your case! If it's not, we'll try to figure out the best way to do it
You can try to play with mocking
$apollo
object on mounting. I've added this section to Vue Apollo docs recently: vue-apollo.netlify.com/guide/testi...Please let me know if it's useful for your case! If it's not, we'll try to figure out the best way to do it
I decided to test the variables functions directly.
the winning incantation is
I'm working a mock provider that provides access to stuff thing this so it's a bit less of a dig to test
Thanks!
I posted a short blog post for people about this
dev.to/focusedlabs/testing-apollos...