You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
constcontext=generateContext({ mutations, actions, getters })// passing a module or storemyAction(context,parameters)// test things
The text was updated successfully, but these errors were encountered:
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
The text was updated successfully, but these errors were encountered: