{"id":30105814,"url":"https://github.com/asrieldreemurrgm/jest_testing_study","last_synced_at":"2025-08-10T00:19:35.919Z","repository":{"id":277629408,"uuid":"931761175","full_name":"AsrielDreemurrGM/Jest_Testing_Study","owner":"AsrielDreemurrGM","description":"Practice project to learn and implement unit and integration tests using Jest and React Redux.","archived":false,"fork":false,"pushed_at":"2025-07-29T18:43:12.000Z","size":405,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-29T21:18:42.121Z","etag":null,"topics":["automated-tests","frontend-testing","html5","integration-tests","jest","jest-tests","mock-service-worker","preloaded-state","react-redux","react-testing","test-coverage","testing","testing-library","tests","typescript","unit-tests"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AsrielDreemurrGM.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-02-12T20:12:19.000Z","updated_at":"2025-07-29T18:43:17.000Z","dependencies_parsed_at":"2025-02-15T03:19:12.353Z","dependency_job_id":"10fadb18-18d9-4433-8f6f-c798c1cdb8ff","html_url":"https://github.com/AsrielDreemurrGM/Jest_Testing_Study","commit_stats":null,"previous_names":["asrieldreemurrgm/estudo_do_jest","asrieldreemurrgm/jest_testing_study"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/AsrielDreemurrGM/Jest_Testing_Study","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AsrielDreemurrGM%2FJest_Testing_Study","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AsrielDreemurrGM%2FJest_Testing_Study/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AsrielDreemurrGM%2FJest_Testing_Study/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AsrielDreemurrGM%2FJest_Testing_Study/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AsrielDreemurrGM","download_url":"https://codeload.github.com/AsrielDreemurrGM/Jest_Testing_Study/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AsrielDreemurrGM%2FJest_Testing_Study/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269657332,"owners_count":24454826,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-09T02:00:10.424Z","response_time":111,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["automated-tests","frontend-testing","html5","integration-tests","jest","jest-tests","mock-service-worker","preloaded-state","react-redux","react-testing","test-coverage","testing","testing-library","tests","typescript","unit-tests"],"created_at":"2025-08-10T00:19:34.968Z","updated_at":"2025-08-10T00:19:35.906Z","avatar_url":"https://github.com/AsrielDreemurrGM.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1\u003eJest Testing Study\u003c/h1\u003e\n\u003cp\u003e\n  Este README também está disponível em \u003ca href=\"./README.pt-br.md\"\u003ePortuguês\u003c/a\u003e.\n\u003c/p\u003e\n\u003cp\u003e\n  A hands-on learning project designed to explore testing practices in React applications using \u003cstrong\u003eJest\u003c/strong\u003e, \u003cstrong\u003eTesting Library\u003c/strong\u003e, and \u003cstrong\u003eReact Redux\u003c/strong\u003e. This includes tests for components, user interactions, alerts, and Redux logic, while integrating tools like Mock Service Worker and code coverage reporting.\n\u003c/p\u003e\n\u003ch2\u003e🧪 What’s Being Tested\u003c/h2\u003e\n\u003cul\u003e\n  \u003cli\u003eReact component rendering and interaction;\u003c/li\u003e\n  \u003cli\u003eRedux store and dispatched actions using \u003ccode\u003epreloadedState\u003c/code\u003e;\u003c/li\u003e\n  \u003cli\u003eForm behavior and UI events using \u003ccode\u003efireEvent\u003c/code\u003e and \u003ccode\u003escreen\u003c/code\u003e;\u003c/li\u003e\n  \u003cli\u003eAlert messages and side effects triggered by components;\u003c/li\u003e\n  \u003cli\u003eMock Service Worker (MSW) for API simulations;\u003c/li\u003e\n  \u003cli\u003eCustom render utilities for provider wrapping;\u003c/li\u003e\n  \u003cli\u003eUnit tests for utility functions and string operations;\u003c/li\u003e\n  \u003cli\u003eTest coverage reports.\u003c/li\u003e\n\u003c/ul\u003e\n\u003ch2\u003e⚙️ Technologies Used\u003c/h2\u003e\n\u003cul\u003e\n  \u003cli\u003eReact\u003c/li\u003e\n  \u003cli\u003eRedux Toolkit\u003c/li\u003e\n  \u003cli\u003eTypeScript\u003c/li\u003e\n  \u003cli\u003eJest\u003c/li\u003e\n  \u003cli\u003eReact Testing Library\u003c/li\u003e\n  \u003cli\u003eMock Service Worker (MSW)\u003c/li\u003e\n\u003c/ul\u003e\n\u003ch2\u003e📂 Folder Structure\u003c/h2\u003e\n\u003cpre\u003e\u003ccode\u003e\nsrc/\n├── components/       # Components with associated tests\n├── store/            # Redux setup with preloaded state\n├── utils/            # Utility functions and helpers\n├── tests/            # Jest test files and helpers\n└── App.tsx           # Main application entry\n\u003c/code\u003e\u003c/pre\u003e\n\u003ch2\u003e📌 Commit Highlights\u003c/h2\u003e\n\u003cul\u003e\n  \u003cli\u003e\u003cstrong\u003eRender Tests\u003c/strong\u003e – Created tests for header, product list, and cart items;\u003c/li\u003e\n  \u003cli\u003e\u003cstrong\u003eRedux Store Refactor\u003c/strong\u003e – Refactored store to support \u003ccode\u003epreloadedState\u003c/code\u003e and reusable render logic;\u003c/li\u003e\n  \u003cli\u003e\u003cstrong\u003eMock Service Worker\u003c/strong\u003e – Integrated MSW to simulate backend API behavior during tests;\u003c/li\u003e\n  \u003cli\u003e\u003cstrong\u003eCoverage Script\u003c/strong\u003e – Added script to check project coverage;\u003c/li\u003e\n  \u003cli\u003e\u003cstrong\u003eAlert Component Test\u003c/strong\u003e – Added test to validate product alert logic.\u003c/li\u003e\n\u003c/ul\u003e\n\u003ch2\u003e📝 Notes\u003c/h2\u003e\n\u003cul\u003e\n  \u003cli\u003eThis project is for study and practice purposes only;\u003c/li\u003e\n  \u003cli\u003eCode is written with readability and test clarity in mind;\u003c/li\u003e\n  \u003cli\u003eJest is used with TypeScript and configured for React DOM testing;\u003c/li\u003e\n  \u003cli\u003eComments are added throughout to explain testing logic.\u003c/li\u003e\n\u003c/ul\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fasrieldreemurrgm%2Fjest_testing_study","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fasrieldreemurrgm%2Fjest_testing_study","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fasrieldreemurrgm%2Fjest_testing_study/lists"}