{"id":23719794,"url":"https://github.com/rayyanx95/counter-click-ts","last_synced_at":"2026-04-04T20:33:01.337Z","repository":{"id":123733507,"uuid":"471420443","full_name":"RayyanX95/counter-click-ts","owner":"RayyanX95","description":"Simple counter using React TypeScript with Unit Testing using Jest and Enzyme","archived":false,"fork":false,"pushed_at":"2022-03-18T15:32:36.000Z","size":159,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-26T00:04:38.338Z","etag":null,"topics":["enzyme","javascript","jest","react","reacttypescript","typescript"],"latest_commit_sha":null,"homepage":"https://counter-click-ts.onrender.com/","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/RayyanX95.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":"2022-03-18T15:27:34.000Z","updated_at":"2022-03-18T16:54:41.000Z","dependencies_parsed_at":null,"dependency_job_id":"257da669-b135-4030-bf30-afe00ad7d6ba","html_url":"https://github.com/RayyanX95/counter-click-ts","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/RayyanX95/counter-click-ts","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RayyanX95%2Fcounter-click-ts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RayyanX95%2Fcounter-click-ts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RayyanX95%2Fcounter-click-ts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RayyanX95%2Fcounter-click-ts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RayyanX95","download_url":"https://codeload.github.com/RayyanX95/counter-click-ts/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RayyanX95%2Fcounter-click-ts/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31413269,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-04T20:09:54.854Z","status":"ssl_error","status_checked_at":"2026-04-04T20:09:44.350Z","response_time":60,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["enzyme","javascript","jest","react","reacttypescript","typescript"],"created_at":"2024-12-30T21:54:23.930Z","updated_at":"2026-04-04T20:33:01.328Z","avatar_url":"https://github.com/RayyanX95.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Counter Click TS\n\nSimple counter using React TypeScript with Unit Testing using Jest and Enzyme\n\n## Challenges \nOne of the testing of this simple app was to apply the following scenario:\n### 1. Decrement button\n\n- Create a new button that subtracts 1 from the counter\n\n### 2. No count below 0\n\n- Don't let the counter go below zero.\n- if the counter is at 0 and the decrement button is clicked:\n    - don't decrement the counter\n    - display an error message saying the counter can't go below zero\n\n### 3. Remove error when increment button is clicked\n\n- If error is showing and increment button is clicked, clear the error.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frayyanx95%2Fcounter-click-ts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frayyanx95%2Fcounter-click-ts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frayyanx95%2Fcounter-click-ts/lists"}