JSPM

  • Created
  • Published
  • Downloads 156848
  • Score
    100M100P100Q150450F
  • License MIT

Test React components using Cypress

Package Exports

  • @cypress/react
  • @cypress/react/dist/cypress-react.cjs.js
  • @cypress/react/dist/cypress-react.esm-bundler.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@cypress/react) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

@cypress/react

Mount React components in the open source 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 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