Closed
Description
These aren't really Vue-specific testing tips, but I think they could still be helpful for people. This is a list that will probably grow as I (or others) think of more things.
- Using spies to ensure something happens in a lifecycle hook
- Mocking Ajax requests
- Mocking external dependencies
Vuex stores/modules
- Testing initial state
- Testing actions
- Testing mutations
- Testing getters