Search⌘ K
AI Features

Tools for Testing

Explore how to use React developer tools for inspecting the virtual DOM and learn to run automated tests with Jest. Understand how Storybook helps render UI components in various states and how snapshot testing can verify UI presentation. This lesson equips you to debug and test your React application efficiently.

Testing frameworks we will use

In this chapter, we begin by looking at React’s in-browser development tools that allow us to interactively inspect React’s virtual DOMDOM stands for the Document Object Model, which tracks the pieces of a web page and their hierarchical relationships.. This can be useful for getting a better understanding of what our code produces. A good testing framework facilitates automatically running tests. For this, we use Jest, which is especially good at testing the core logic of our client application. To look at the presentation of the application, we want to ...