Skip to content

Commit

Permalink
docs: update mount partial for new imports
Browse files Browse the repository at this point in the history
elylucas authored Apr 14, 2022
1 parent 38d4e08 commit 8527b34
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions content/partials/import-mount-functions.md
Original file line number Diff line number Diff line change
@@ -8,18 +8,18 @@ framework-specific `mount()` functions, which can be imported like so:
<strong class="alert-header">A note for React users</strong>

The `mount()` command exported from the
[@cypress/react](https://github.com/cypress-io/cypress/tree/develop/npm/react)
library supports standard JSX syntax for mounting components. If you have any
[cypress/react](https://github.com/cypress-io/cypress/tree/develop/npm/react)
module supports standard JSX syntax for mounting components. If you have any
questions about mount options that aren't covered in this guide, be sure to
check out the library
check out the module
[documentation](https://github.com/cypress-io/cypress/tree/develop/npm/react#readme).

</Alert>
</template>
<template #react>

```js
import { mount } from '@cypress/react'
import { mount } from 'cypress/react'
```

</template>
@@ -29,7 +29,7 @@ import { mount } from '@cypress/react'
<strong class="alert-header">A note for Vue users</strong>

The `mount()` command exported from the
[@cypress/vue](https://github.com/cypress-io/cypress/tree/develop/npm/vue)
[cypress/vue](https://github.com/cypress-io/cypress/tree/develop/npm/vue)
library uses [Vue Test Utils](https://vue-test-utils.vuejs.org/) internally, but
instead of mounting your components in a virtual browser in node, it mounts them
in your actual browser. If you have any questions about mount options that
@@ -41,7 +41,11 @@ aren't covered in this guide, be sure to check out the library
<template #vue>

```js
import { mount } from '@cypress/vue'
// For Vue 3
import { mount } from 'cypress/vue'

// For Vue 2
import { mount } from 'cypress/vue-2'
```

</template>

0 comments on commit 8527b34

Please sign in to comment.