-
Notifications
You must be signed in to change notification settings - Fork 665
Closed
Labels
Description
While implementing we noticed that the proposed syntax for modules does not work: https://vue-test-utils.vuejs.org/en/guides/using-with-vuex.html
Instead, what we ended up doing is this:
import Preferences from 'models/preferences';
beforeEach(() => {
store = new Vuex.Store({
modules: {
Preferences: {
state: {
panelVisible: true,
},
mutations: Preferences.mutations,
getters: Preferences.getters,
namespaced: true,
},
},
});
});
cpxPratik