-
-
Notifications
You must be signed in to change notification settings - Fork 19
Open
Labels
enhancementNew feature or requestNew feature or request
Description
It would be great to also expose some utilities to test the store itself, for example, when testing an action, you may want to write an integration test and therefore not providing the getters but instead using the actual getters object as well as letting mutations and actions get called by dispatch and commit.
A function that generates a context object by being passed a module or store.
Still need to think about the API so it can handle rootState, rootGetters and others properly, also take care of nested modules naming with namespaced
const context = generateContext({ mutations, actions, getters }) // passing a module or store
myAction(context, parameters)
// test thingsReactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request