Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove CT adapter readme links #4846

Merged
merged 1 commit into from Nov 8, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 4 additions & 0 deletions content/api/commands/mount.md
Expand Up @@ -35,6 +35,10 @@ to start with for your commands:
<template #react>

```js
// React 18
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure if we actually want to do this... it seems consistent with the way that we do the Vue/Vue2 examples

import { mount } from 'cypress/react18'

// React 16, 17
import { mount } from 'cypress/react'

Cypress.Commands.add('mount', (component, options) => {
Expand Down
18 changes: 7 additions & 11 deletions content/partials/import-mount-functions.md
Expand Up @@ -9,16 +9,17 @@ framework-specific `mount()` functions, which can be imported like so:

The `mount()` command exported from the
[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 module
[documentation](https://github.com/cypress-io/cypress/tree/develop/npm/react#readme).
module supports standard JSX syntax for mounting components.

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

```js
// React 18
import { mount } from 'cypress/react18'

// React 16, 17
import { mount } from 'cypress/react'
```

Expand All @@ -32,9 +33,7 @@ The `mount()` command exported from the
[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
aren't covered in this guide, be sure to check out the library
[documentation](https://github.com/cypress-io/cypress/tree/develop/npm/vue#readme).
in your actual browser.

</Alert>
</template>
Expand All @@ -58,10 +57,7 @@ The `mount()` command exported from the
[cypress/angular](https://github.com/cypress-io/cypress/tree/develop/npm/angular)
library uses [Angular TestBed](https://angular.io/api/core/testing/TestBed)
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 aren't covered in this guide, be sure to check out the
library
[documentation](https://github.com/cypress-io/cypress/tree/develop/npm/angular#readme).
node, it mounts them in your actual browser.

</Alert>
</template>
Expand Down