Skip to content
Testing · Lesson 04 of 07 · Builds on Testing async code and mocks

Testing Pinia stores

Test a store with a fresh Pinia in every test, and test the components that use it with createTestingPinia(), where actions are spies and state starts where you need it.

Check what stuck

Get 2 of 3 right to finish the lesson.
0 / 3