Put in order · Vue.js course · Module 12: Testing & Deploy
Testing a Pinia store - steps
Arrange the steps for testing a Pinia store in order:
Items to put in order
- Call a store action
- Import setActivePinia and createPinia
- Verify the store state with assertions
- beforeEach: setActivePinia(createPinia())
- Create a store instance in the test
You can check the correct answer by solving this task in the CodeWorlds game.