Introduction to queries and getBy Variant
Learn about queries and it’s ‘getBy’ variant in React Testing Library.
We'll cover the following
The starter project for this lesson contains a PersonPage
component that renders a person’s name and scores for a given id. The person’s name and scores are retrieved from an asynchronous function called getPerson
. This simulates a function that would retrieve the data from a web service.
A copy of the project is in the code widget below.
Get hands-on with 1400+ tech skills courses.