How to use Vuex + Component Testing #26751
Unanswered
MaYoRr
asked this question in
Component Testing
Replies: 1 comment
-
you can use this snippet create mock-vuex-store.js ` export function storeMock(storeConfig, config) { let store = new Vuex.Store(storeConfig); return { store, localVue }; import { storeMock } from "your_path/mock-vuex-store";
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Im using Cypress + Vue Js and Component testing. My component using Vuex. How to make test with vuex imitation. Now I have this error:
Cannot read properties of undefined (reading 'getters')
Beta Was this translation helpful? Give feedback.
All reactions