access getters in actions vuex with vue test utils code example
Example: vuex access getters from actions
getters: {
getAppData: state => () => {
return state.data;
}
}
actions: {
sendDataToServer({ commit , getters }, payload) {
// call getter
const data = getters.getAppData
}
},