An open API service indexing awesome lists of open source software.

https://github.com/asrieldreemurrgm/jest_testing_practice

Practice project for testing components and user interactions using React, Redux, and Jest.
https://github.com/asrieldreemurrgm/jest_testing_practice

frontend react react-testing-library redux testing typescript unit-testing

Last synced: 3 days ago
JSON representation

Practice project for testing components and user interactions using React, Redux, and Jest.

Awesome Lists containing this project

README

          

React Redux Testing Practice With Jest



Este README também está disponível em Português.



Practical project focusing on unit and component testing using Jest in a React + Redux environment.


📋 Project Overview



This repository contains a small React + Redux application used to practice writing tests using Jest.
The goal is to ensure the rendering of a component and simulate user interactions, like inserting comments.


🚀 Technologies Used



  • React

  • Redux

  • TypeScript

  • Jest

  • React Testing Library


✅ How to Run



  1. Install dependencies:
    npm install

    or
    yarn install


  2. Run tests:
    npm run test

    or
    yarn test


  3. Start the application:
    npm start

    or
    yarn start



📜 Commits Overview




  • Rendering Test Created – Basic render verification for the post component;


  • Comment Insertion Test – Added test for inserting two comments; also:

    • Added alt to image;

    • Added data-testid to textarea and button;

    • Added script to check coverage.




  • Project Setup – Initial setup and folder structure adjustments.