Skip to content

Latest commit

 

History

History
17 lines (11 loc) · 1.24 KB

File metadata and controls

17 lines (11 loc) · 1.24 KB

Unit testing React code

A little React greeting.jsx component is tested (inside Cypress test runner) using:

cypress-react-unit-test example

The screenshot below shows how cypress-react-unit-test mounts a React component as "mini" web application.

Testing React component using cypress-react-unit-test

Read Sliding Down the Testing Pyramid for more details about testing individual components by mounting them in the Cypress test runner's iframe.