Simple example, demonstrating how to write unit tests and e2e tests using Jest and Cypress.
Created by create-react-app
clone the repository using git clone
command. then run npm i
in root folder, then run npm start
to see.
In order to run unit tests written by Jest, run npm run test
.
To get coverage report, run npm run converage
.
In order to run e2e tests written by Cypress, run npm run cypress:open
to start Cypress GUI application, Then select desired e2e test file from the shown list.