DEV Community

Discussion on: Advice for UI Testing

Collapse
 
pankajpatel profile image
Pankaj Patel

Cypress.io will provide the way to interact, mock and test/expect the functionalities in the UI. So it is definitely a solution to go for.

Though, testing-library is gonna provide the helpers to easily test Visual Components in the Unit Tests in addition to Jest. So both are recommended, though you can do unit tests without testing-library and only with Jest.

Test as much as possible in Unit test individually. And then test the whole app in E2E with cypress.