Question · Vue.js course · Module 12: Testing & Deploy
Testing emitted events
How do you check whether a component emitted an event in a test?
Answer options
- wrapper.emitted('eventName') returns an array of emissions
- wrapper.events('eventName') returns a boolean
- wrapper.listen('eventName') registers a listener
- wrapper.on('eventName') adds a callback
You can check the correct answer by solving this task in the CodeWorlds game.