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.