Skip to content
masterclass Buddy

Cypress · Method

cy.mount

cy.mount() is a custom command for Cypress component tests. Define it in a support file by calling the framework-specific mount function, then use it in specs.

Last updated

Syntax

Cypress.Commands.add('mount', (component, options) => mount(component, options))

In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.

Subscribe
  • mount()
  • Cypress.Commands.add()
  • Cypress.Chainable
  • cypress/react
  • cypress/vue
  • cypress/angular

Source: cy.mount() | Cypress API Documentation. Checked 2026-11-03.