Simon Dean
Simon Dean
I think I understand now. `data` is actually the action's `context`
I'm not sure the work around works when you want to call non-decorated private functions from a mutation rather than from an action. I've got some helper functions that need...
@pi0 I don't know if any of the stuff in https://github.com/nuxt/nuxt.js/issues/8247 is of help?
Hi @ramsane, you can mock `$route` like this: ```javascript import { createLocalVue, mount } from '@vue/test-utils' import VueMeta from 'vue-meta' import Index from '@/pages/index.vue' const localVue = createLocalVue() localVue.use(VueMeta, {...
@ramsane you can also mock `fetch()` or `asyncData()`. See https://github.com/testing-library/vue-testing-library/issues/92#issuecomment-732078213 as a `fetch()` example
Hi @mbknor. Here's a minimal example for this issue. At least it shows how I'm encountering the issue. The unit test is the example would be expected to pass -...