---
id: app/component-testing/vue/api
title: Vue API
description: API for mounting Vue components in Cypress tests.
section: app
source_path: docs/app/component-testing/vue/api.mdx
version: e6988a974973e9090ce70406c38cb2b9e0eac9fa
updated_at: '2026-05-15T15:50:22.536Z'
---
# Vue API

## Methods

### mount

```
import { mount } from 'cypress/vue'
```

<table><tbody><tr><td>Description</td><td><p>Used for mounting Vue components in isolation. It is responsible for rendering the component within Cypress's sandboxed iframe and handling any framework-specific cleanup.</p></td></tr><tr><td>Signature</td><td><p>mount(originalComponent: { new (...args: any[]): ; __vccOpts: any; }, options?: MountOptions): Cypress.Chainable&lt;MountReturn&gt;</p></td></tr></tbody></table>

<table><caption>mount Parameters</caption><thead></thead><tbody><tr><td>Name</td><td>Type</td><td>Description</td></tr><tr><td>originalComponent</td><td>new (...args: any[])</td><td>The component to mount in test</td></tr><tr><td>options</td><td>MountOptions (optional)</td><td>The options for mounting the component</td></tr></tbody></table>

## Interfaces

### MountOptions

([Vue 3 MountingOptions](https://test-utils.vuejs.org/api/#mount) or [Vue Test Utils](https://test-utils.vuejs.org/))

### MountReturn

Type that the `mount` function yields

<table><caption>members</caption><thead></thead><tbody><tr><td>Name</td><td>Type</td><td>Description</td></tr><tr><td>wrapper</td><td>VueWrapper</td><td>The Vue Test Utils <code>wrapper</code></td></tr><tr><td>component</td><td>VueComponent</td><td>The component instance</td></tr></tbody></table>
