Please enable JavaScript.
Coggle requires JavaScript to display documents.
Vue JS - Coggle Diagram
Vue JS
Vuex / stores
Vue mastery Error handling
router push error
edit store actions
Actions
Mutators
Getters
Advantages
Modules
Resources
Vue mastery
Unit testing
too/framework for tests :
Jest
What to test ?
To test
component contract
inputs/outputs
Testing emitted events
Testing api calls
axios
jest / mock
not to test
prop validation
implementation details
dont' overtesting => wasting time
Resources :
vue mastery (unit testing)
package json scripts tests "test-unit" if from cli
files
AppHeader.vue
AppHeader.spec.js
describe()
test()
expect()
mount
wrapper
async
await
Mocking
Stubbing components
Stubbing advantages
disadvantages
Maintenance
ShallowMount
Forms
Composants interesssants
v-model
v-model.number
btn submit
submit.prevent
$emit
Test
display recorded datas
v-for
Validations
Resources
Vue mastery
https://www.vuemastery.com/courses/intro-to-vue-3/forms-and-v-model-vue3
reusable
props
Router
Props
Prop function mode
route.query