Session

A Full Guide To The React Testing Library

The React Testing Library has become the main library for testing every React project. But do you really know and understand it?
During this session, we'll deep dive into understanding React Testing Library so you can confidently write your tests and sleep better at night.

Table of Contents
Testing Library: The introduction and testing paradigm
The basics of React Testing Library
Write your first test
Querying: Which query should I use?
Firing Events: What event do I need?
Async Methods: How do I wait for my element?
Save time and make your life easier with these utils
API calls: how do I test these?
Common mistakes and how to survive them.
How to stop losing sleep over the "an update was not wrapped in act(...)" warning.

Pre-requisites
Basic JavaScript knowledge
Basic React knowledge
Basic Jest knowledge

Daniel Afonso

Developer Advocate at OLX

Coimbra, Portugal

Actions

Please note that Sessionize is not responsible for the accuracy or validity of the data provided by speakers. If you suspect this profile to be fake or spam, please let us know.

Jump to top