Complete the code to mount a Vue component using Cypress.
cy.[1](MyComponent)The mount command is used in Cypress to mount Vue components for testing.
Complete the code to import the mount function from Cypress Vue testing library.
import { [1] } from '@cypress/vue'
The mount function is imported from '@cypress/vue' to mount Vue components in tests.
Fix the error in the code to correctly mount a Vue component with props.
cy.mount(MyComponent, { [1]: { title: 'Hello' } })In Cypress Vue testing, props are passed using the props option, not 'propsData'.
Fill both blanks to mount a Vue component with global plugins and stubs.
cy.mount(MyComponent, { global: { [1]: [router], [2]: { 'my-child': true } } })The plugins array is used to add Vue plugins like router, and stubs is used to replace child components during mounting.
Fill all three blanks to mount a Vue component with props, global components, and a directive.
cy.mount(MyComponent, { [1]: { count: 5 }, global: { [2]: { Button }, [3]: { focus: focusDirective } } })Props are passed with props, global components registered under components, and directives under directives.