Talks
Events

Testing Library Meets React Native

Maria Marchenkova, Michał Pierzchała at React Native EU 2020 - Virtual Edition

React empowered us to render user interfaces anywhere – in memory, browsers, mobile devices to name a few. Rendering in memory is cheap and fast compared to runtime environment, so in-memory UI testing libraries emerged. One of the most popular one now is React Testing Library. Soon after it went public, React Native Testing Library was created trying to implement their style of testing for React Native components. And a few months later another one came to light out of the blue, quickly becoming an official one. The community ended up with two almost identical libraries. Sounds confusing, huh? It was! This story is about all this drama, how it eventually turned out, how community and empathy wins, how businesses help sustain OSS, sprinkled with examples of how you can test your React Native components with just JavaScript.