Skip to content

How to access mock store value in the Vue component when doing jest unit testing? #920

Discussion options

You must be logged in to vote

The best would be to pass initial state to https://pinia.vuejs.org/api/interfaces/pinia_testing.TestingOptions.html#initialstate when creating the testing pinia

Replies: 2 comments 3 replies

Comment options

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

@LaurenceHo
Comment options

Answer selected by LaurenceHo
Comment options

You must be logged in to vote
1 reply
@LaurenceHo
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants