Can someone help me figure out how to import a component into a slot using Cypress Component Testing with Vue?
The documentation mentions the following for slots:
import DefaultSlot from './DefaultSlot.vue'
describe('<DefaultSlot />', () => {
it('renders', () => {
cy.mount(DefaultSlot, {
slots: {
default: 'Hello there!',
},
})
cy.get('div.content').should('have.text', 'Hello there!')
})
})
I would like to achieve something similar to this:
<DefaultSlot>
<AnotherSlot />
</DefaultSlot>