https://cypress.io logo
Testing components using VueX
# i-need-help
m
I've looked at this page to understand how to do this: https://docs.cypress.io/guides/component-testing/vue/examples#Vuex and it has this line: import { getStore } from '../../src/plugins/store' I haven't been able to find where 'getStore' is, and I can't find any reference to it in the VueX documentation.
b
It probably references the vuex store itself. According to this excerpt. You can try. > The getStore method is a factory method that initializes Vuex and creates a new store. It is important that the store be initialized with each new test to ensure changes to the store don't affect other tests.