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.
- Login and registration screen
- Input and Button components
- Toats for input validation
It is necessary to have installed the main tools:
# 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
# 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