How to Confidently Write Unit Tests using React Testing Library

This page summarizes the projects mentioned and recommended in the original post on dev.to

SurveyJS - JavaScript Form Builder with No-Code UI & Built-In JSON Schema Editor
Add the SurveyJS white-label form builder to your JavaScript app (React/Angular/Vue3). Build complex JSON forms without coding. Fully customizable, works with any backend, perfect for data-heavy apps. Learn more.
surveyjs.io
featured
InfluxDB – Built for High-Performance Time Series Workloads
InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now.
www.influxdata.com
featured
  1. testing-library-demo

    React Testing Library Demo

    Add the content from this link in the Register.jsx file and inside register.css file add contents from this link.

  2. SurveyJS

    JavaScript Form Builder with No-Code UI & Built-In JSON Schema Editor. Add the SurveyJS white-label form builder to your JavaScript app (React/Angular/Vue3). Build complex JSON forms without coding. Fully customizable, works with any backend, perfect for data-heavy apps. Learn more.

    SurveyJS logo
  3. vite

    Next generation frontend tooling. It's fast!

    We will be using Vite which is the most popular and a faster alternative to create-react-app.

  4. testing-library-docs

    docs site for @testing-library/*

    The React Testing Library has a set of packages that helps you test UI components in a user-centric way which means just like how the user interacts with the various elements displayed on the page.

  5. react-hook-form

    📋 React Hooks for form state management and validation (Web + React Native)

    Also, instead of managing the state and onChange handler yourself, you can use a very popular react-hook-form library.

  6. react-bootstrap

    Bootstrap components built with React

    We will use react-bootstrap to create the UI elements so we don't have to write all CSS from scratch.

  7. jest

    Delightful JavaScript Testing.

    We cannot only use the testing library alone, but we also need to install Jest which exposes extensively used global expect function and other things which help to make assertions in our test cases.

  8. Enzyme

    JavaScript Testing utilities for React

    So If you have experience with enzyme testing, where you might be checking the value of state once you click any button or you might be checking the prop value If something changes.

  9. InfluxDB

    InfluxDB – Built for High-Performance Time Series Workloads. InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now.

    InfluxDB logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts

  • React + AI Stack for 2025

    15 projects | dev.to | 3 Jan 2025
  • Top 10 Tools Every React Developer Needs in 2024

    4 projects | dev.to | 3 Apr 2024
  • In-Depth guide for TypeScript Library

    4 projects | dev.to | 13 Nov 2023
  • ReactJS Good Practices

    13 projects | dev.to | 1 Nov 2023
  • Building a Node API with Fastify, esbuild, and Nx

    6 projects | dev.to | 28 Feb 2023

Did you know that TypeScript is
the 1st most popular programming language
based on number of references?