Chapter 4Test Your React Components
Manually navigating through a large application to check that everything works is too time consuming. It’s better to test parts of the application with automated tests.
When the UI makes a substantial part of the application, it’s difficult to create automated tests that not only inform you of errors but also require reasonably little code.
One option would be to use a browser automation library to navigate through your application, but this sort of test tends to fail in ways that are difficult to interpret. It also takes a long time to set up, so it’s only useful for testing at a high level. It also doesn’t require any React-specific knowledge, so I encourage you to refer to other books or resources to ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access