1.) yarn add -D cypress @testing-library/cypress
2.) yarn run cypress open
3.) /cypress/support/commands.js:
import "@testing-library/cypress/add-commands"
4.) delete the 2 default folders from /cypress/integration
- High value features like app's core functionality & payments (End-to-end testing with Cypress)
- Edge cases in high value features (Integration and unit tests with React Testing Library)
- Things that are easy to break (Integration and unit tests with React Testing Library)
- Basic react component testing (Integration and unit tests with React Testing Library)
- User interactions
- Conditional rendering
- Utils
- Hooks