Mock Vuex in Vue unit tests
Vuex in Vue unit tests
This is a code-heavy tutorial, to help you understand how to mock Vuex in Vue unit tests, with a full GitHub repo available here to supplement it.
The tutorial consists of 3 parts:
- Mocking Actions
- Mocking Getters
- Mocking with Modules
In this tutorial avoriaz is utilized, which a Vue.js testing utility library with many options.
You can find the tutorial here.