React Tests - JEST & Testing-Library

Developer

| Tárik Wataya

💻 About the Project

The purpose of this project is to study and practice the basics of unit tests, TDD in ReactJS applications using the JEST and React-Testing-Library tools.

The project contains only pages simulating a login and registration page.

The tests are done by rendering the components and some specific tests for Inputs and Buttons for example.


⚙️ The project

  • Login and registration screen
  • Input and Button components
  • Toats for input validation

🚀 How to Run Project

Required

It is necessary to have installed the main tools:

🧭 Running the project

# Clone this repository
$ git clone https://github.com/tarikwataya/React-Jest-Tests
# Access the project folder
$ cd React-Jest-Tests
# Install the dependencies
$ yarn
# Running
$ yarn dev

🧭 Running Tests

# Clone this repository
$ git clone https://github.com/tarikwataya/React-Jest-Tests
# Access the project folder
$ cd React-Jest-Tests
# Install the dependencies
$ yarn
# Running for general tests
$ yarn test
# OR running for coverage tests
$ yarn test:coverage

🎥️ Example

Capturar