The next few guides discuss testing Vuex.
Two Sides of Testing Vuex
Generally components will interact with Vuex by
- committing a mutation
- dispatching an action
- access the state via
These tests are to assert that the component behaves correctly based on the current state of the Vuex store. They do not need to know about the implementation of the mutators, actions or getters.
The next guide introduces some techniques to test components that use a Vuex store, and ensure they behave correctly based on the store's state. Later guides discuss testing Vuex in isolation.