{
  "doc": {
    "id": "app/component-testing/vue/api",
    "title": "Vue API",
    "description": "API for mounting Vue components in Cypress tests.",
    "section": "app",
    "source_path": "/llm/markdown/app/component-testing/vue/api.md",
    "version": "e6988a974973e9090ce70406c38cb2b9e0eac9fa",
    "updated_at": "2026-05-15T15:50:22.536Z",
    "headings": [
      {
        "id": "app/component-testing/vue/api#vue-api",
        "text": "Vue API",
        "level": 1
      },
      {
        "id": "app/component-testing/vue/api#methods",
        "text": "Methods",
        "level": 2
      },
      {
        "id": "app/component-testing/vue/api#mount",
        "text": "mount",
        "level": 3
      },
      {
        "id": "app/component-testing/vue/api#interfaces",
        "text": "Interfaces",
        "level": 2
      },
      {
        "id": "app/component-testing/vue/api#mountoptions",
        "text": "MountOptions",
        "level": 3
      },
      {
        "id": "app/component-testing/vue/api#mountreturn",
        "text": "MountReturn",
        "level": 3
      }
    ]
  },
  "content": {
    "type": "root",
    "children": [
      {
        "type": "heading",
        "depth": 1,
        "children": [
          {
            "type": "text",
            "value": "Vue API"
          }
        ]
      },
      {
        "type": "heading",
        "depth": 2,
        "children": [
          {
            "type": "text",
            "value": "Methods"
          }
        ]
      },
      {
        "type": "heading",
        "depth": 3,
        "children": [
          {
            "type": "text",
            "value": "mount"
          }
        ]
      },
      {
        "type": "code",
        "lang": null,
        "meta": null,
        "value": "import { mount } from 'cypress/vue'"
      },
      {
        "type": "html",
        "value": "<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>"
      },
      {
        "type": "html",
        "value": "<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>"
      },
      {
        "type": "heading",
        "depth": 2,
        "children": [
          {
            "type": "text",
            "value": "Interfaces"
          }
        ]
      },
      {
        "type": "heading",
        "depth": 3,
        "children": [
          {
            "type": "text",
            "value": "MountOptions"
          }
        ]
      },
      {
        "type": "paragraph",
        "children": [
          {
            "type": "text",
            "value": "("
          },
          {
            "type": "link",
            "title": null,
            "url": "https://test-utils.vuejs.org/api/#mount",
            "children": [
              {
                "type": "text",
                "value": "Vue 3 MountingOptions"
              }
            ]
          },
          {
            "type": "text",
            "value": " or "
          },
          {
            "type": "link",
            "title": null,
            "url": "https://test-utils.vuejs.org/",
            "children": [
              {
                "type": "text",
                "value": "Vue Test Utils"
              }
            ]
          },
          {
            "type": "text",
            "value": ")"
          }
        ]
      },
      {
        "type": "heading",
        "depth": 3,
        "children": [
          {
            "type": "text",
            "value": "MountReturn"
          }
        ]
      },
      {
        "type": "paragraph",
        "children": [
          {
            "type": "text",
            "value": "Type that the `mount` function yields"
          }
        ]
      },
      {
        "type": "html",
        "value": "<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>"
      }
    ]
  },
  "token_estimate": 120
}