# @cypress/react

> Test React components using Cypress

Latest version **10.0.0** (published 2026-08-26) · MIT license · 0 weekly downloads

## Install

```sh
npm install @cypress/react
pnpm add @cypress/react
yarn add @cypress/react
bun add @cypress/react
```

## Health

**Score 80/100 (A)** — status: active.

Positive: has types; esm support; no vulnerabilities; recently updated; high maintenance score; high quality score; popular repo; extremely popular.

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 10.0.0 |
| Published | 2026-08-26 |
| First published | 2020-10-14 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 29.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51006 |
| Maintainers | cypress-npm-publisher |
| Keywords | react, cypress, cypress-io, test, testing |

## Links

- npm: https://www.npmjs.com/package/@cypress/react
- Repository: https://github.com/cypress-io/cypress
- Homepage: https://github.com/cypress-io/cypress/blob/develop/npm/react/#readme
- Issues: https://github.com/cypress-io/cypress/issues/new?assignees=&labels=npm%3A%20%40cypress%2Freact&template=1-bug-report.md&title=
- npm.io page: https://npm.io/package/@cypress/react

## Alternatives

- [duck](https://npm.io/package/duck.md) — 4.2M weekly downloads
- [ava](https://npm.io/package/ava.md) — 560.2K weekly downloads
- [storybook-addon-module-mock](https://npm.io/package/storybook-addon-module-mock.md) — 71.7K weekly downloads
- [vest](https://npm.io/package/vest.md) — 50.1K weekly downloads
- [@ethereum-waffle/mock-contract](https://npm.io/package/@ethereum-waffle/mock-contract.md) — 40.0K weekly downloads

## Recent versions

- 10.0.0 (latest) — 2026-08-26
- 5.3.0 (next) — 2021-04-05
- 9.0.2 — 2026-04-13
- 9.0.1 — 2025-03-25
- 9.0.0 — 2025-01-08
- 8.0.2 — 2024-06-07
- 8.0.1 — 2024-05-06
- 8.0.0 — 2023-08-29
- 7.0.3 — 2023-03-20
- 7.0.2 — 2022-12-02
- 7.0.1 — 2022-11-08
- 7.0.0 — 2022-11-07
- 6.2.1 — 2022-11-01
- 6.2.0 — 2022-08-30
- 6.1.1 — 2022-08-15
- … 46 more at https://npm.io/package/@cypress/react/versions

## README

# @cypress/react

Mount React components in the open source [Cypress.io](https://www.cypress.io/) test runner

> **Note:** This package is bundled with the `cypress` package and should not need to be installed separately. See the [React Component Testing Docs](https://docs.cypress.io/guides/component-testing/react/overview) for mounting React components. Installing and importing `mount` from `@cypress/react` should 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.

## [Changelog](./CHANGELOG.md)

---
_Source: https://npm.io/package/@cypress/react · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
