Skip to content

baguilar6174/react-jest-testing-library-app

Repository files navigation

Testing React with Jest and React Testing Library

React Testing Library has become an extremely popular option for testing React, and with good reason! This detailed, comprehensive course provides a solid foundation for React app tests.

What I learned

  • Testing simple and complex React applications with React Testing Library
  • Making the most of Jest watch mode, including running only one file or test at a time
  • React Testing best Practices: how to test behavior instead of implementation
  • Common errors returned by Testing Library and how to correct them

Built with

  • React JS 18
  • Vite
  • Semantic UI
  • Jest
  • React Testing Library
  • Eslint & Prettier

Installation

This React project has been created using Vite.

Step 1:

You need to install yarn. Yarn is a package and library manager.

Step 2:

git clone https://github.com/bryanAguilar001/react-jest-testing-library-app.git
cd testing-react-app

Step 3:

Run this command to install libs

yarn

Step 4:

Download and run the server in this repo

Step 5:

Run the app

yarn start

Step 6:

Run tests (It is not necessary to run the server for testing)

yarn test

Author

Application

products

order

thank you

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published