Problem Statement
What’s the approach to test a Pinia store and components using it?
Explanation
Create a Pinia instance in tests with createTestingPinia or real Pinia, set initial state, and assert getters/actions. For components, provide the test Pinia via global.plugins when mounting.