Test React components using Cypress
- Types
- ESM
- CJS
- License
- MIT
- Deps
- 0
- Install Size
- 30.6 kB
- Vulns
- 0
- Published
$
npm install @cypress/react$
pnpm add @cypress/react$
yarn add @cypress/react$
bun add @cypress/react$
deno add npm:@cypress/react$
vlt install @cypress/react$
vp add @cypress/react@cypress/react
Mount React components in the open source Cypress.io test runner
Note: This package is bundled with the
cypresspackage and should not need to be installed separately. See the React Component Testing Docs for mounting React components. Installing and importingmountfrom@cypress/reactshould only be done for advanced use-cases.
Requirements
- React 18.0.0+ (Cypress 13 and under supports React 16 and 17)
Development
Run yarn build to compile and sync packages to the cypress cli package.
Run yarn cy:open to open Cypress component testing against real-world examples.
Run yarn test to execute headless Cypress tests.