React Native Testing Library (RNTL) exposes API to query elements by texts, labels, placeholder, role, etc., instead of querying by classes. It mimics the user's interaction by firing events instead of us updating the state manually. This way of writing tests closely resembles how the user will interact and makes the whole testing process much more effortless.
Sort: