Question · Vue.js course · Module 12: Testing & Deploy
Testing slots
How do you pass slot content in a test?
Answer options
- mount(Comp, { slots: { default: '<p>Content</p>' } })
- mount(Comp).setSlot('default', '<p>Content</p>')
- mount(Comp, { innerHTML: '<p>Content</p>' })
- Slots cannot be tested
You can check the correct answer by solving this task in the CodeWorlds game.