Render a Vue 3 Component with <slot /> and Test its Content Properties

InstructorFilip Hric

Share this video with your friends

Send Tweet

By passing a slots option to our cy.mount() function, we can define content to be rendered inside our current component. We can use default or named components and eve use Vue’s h() function to create element and pass components with desired properties.