This repository was made to store the codes used to explain tests with jest


 

Presentation: docs link!

After cloning the repository, get inside the project folder (the commands below can use npm or yarn)

The frontend folder is for the examples of react with jest-dom

cd frontend

npm install

To run the project (obs: The project use data from this API: https://hp-api.herokuapp.com/)

npm start

To run the tests

npm test

The testes_simples folder is for initial codes with jest (based in jest docs)

cd testes_simples

npm install

To run the tests

npm test