Skip to content

Unit Tests - Is there a way to mock only one store? #2672

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

You must be logged in to vote

I would use a native mock (jest, vitest have docs for this). But I would also consider not mocker the stores at all and just write an integration test to avoid mocking too much and not testing anything.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
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