Is React testing library unit testing?
There are several methods for testing React components. They can be divided into two groups:
Component trees are rendered in a basic test environment and their output is asserted. End-to-end testing involves executing an entire app in a realistic browser environment. This section of the documentation concentrates on the first case’s testing strategies. While full end-to-end tests can be valuable for preventing regressions in critical workflows, they are not relevant to React components in particular and are outside the scope of this section.