Suppose I have the following component:
import { mapState } from \'vuex\';
import externalDependency from \'...\';
export default {
name: \'Foo\',
computed:
You will need some sort of mutator on the VueX instance, yes this does introduce another unrelated unit to the test but personally by your test including the use of Vuex, that concept has already been broken.
Modifying the state in an unexpected way is more prone to cause behaviour that differs from the actual usage.