Course lesson
Every component test that uses Pinia needs to have Pinia imported and initialized. Instead of doing this separately for each test you can customize your cy.mount() command to automatically use a default store. You can further then customize it to use your own...
Every component test that uses Pinia needs to have Pinia imported and initialized. Instead of doing this separately for each test you can customize your cy.mount() command to automatically use a default store. You can further then customize it to use your own store in case you want to change its state.
Course lesson
Every component test that uses Pinia needs to have Pinia imported and initialized. Instead of doing this separately for each test you can customize your cy.mount() command to automatically use a default store. You can further then customize it to use your own...