Skip to content

How can I test action in vuex with vue-test-utils and jest when this actions uses a globalProperties? #1831

Discussion options

You must be logged in to vote

You are testing your vuex action without a component. On this case there is no need for @vue/test-utils as this is just plain javascript. Where does global.dashboards coming from outside of your test environment?

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@gabriellatavares
Comment options

@freakzlike
Comment options

Answer selected by cexbrayat
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants