Using Jest and Testing Library with React Native Part III: Element Not Found

Justin Leach Development Technologies, JavaScript, React Native, Testing, Testing React Native Series, Tutorial Leave a Comment

In the last installment (Part II), we walked through creating and executing our very first test. With that out of the way, let’s move on to something slightly more complicated. Elements that cannot be found typically are elements that are initially hidden. In this post, we’ll cover how to test for an element or component that isn’t found.

Using Jest and Testing Library with React Native Part II: Our First Test

Justin Leach Development Technologies, JavaScript, React, React Native, Testing, Testing React Native Series, Tutorial Leave a Comment

This is Part 2 of our series, Using Jest and Testing Library with React Native. This post will cover the steps you’ll need to take to write your first test. We will also break down the code line-by-line, so you have a clear understanding of the process.