Question · Vue.js course · Module 9: Composables & VueUse
nextTick in Tests
Why do we use nextTick() or flushPromises() in composable tests?
Answer options
- Watch callbacks and DOM updates wait for the next tick, and flushPromises waits for promises
- To slow down the tests
- It is required by Vue Router
- It replaces setTimeout
You can check the correct answer by solving this task in the CodeWorlds game.