This presentation explores the divisive world of software testing, where React.js developers often find themselves torn between writing no tests and striving for 100% test coverage. Learn how to navigate these polarizing positions and adopt a more nuanced strategy that makes testing React applications efficient and effective.
The talk dives into the concept of ‘Humble Views’, where we minimize untestable objects by extracting logic from UI elements into test-friendly parts of the codebase. This approach simplifies software testing of React applications, focusing on business logic instead of UI complexities. Discover how the Model-View-Presenter (MVP) architecture helps achieve this, with presenters serving as a logical layer for testing and hooks aiding in separating logic from UI components.
Throughout the talk, the presenter will discuss the trade-offs of this approach, the role of End-to-End (E2E) tests, and how to strike the perfect balance between too much and too little testing. Join us as we delve into the art of creating ‘Humble Views,’ ensuring that our React Native apps are scalable, maintainable, and effectively tested!
Video producer: https://www.testjssummit.com