Skip to content

Actions are undefined in tests #2464

Closed Answered by posva
rgrosjean asked this question in Help and Questions
Discussion options

You must be logged in to vote

Your createSpy option is not correct See https://pinia.vuejs.org/cookbook/testing.html#Testing-stores:

createSpy: vi.fn,

I improved the docs at 40f8f22

Replies: 1 comment 1 reply

Comment options

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

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