{"id":32563058,"url":"https://github.com/blevs/react-testing-baseball","last_synced_at":"2025-10-29T02:56:44.712Z","repository":{"id":39432771,"uuid":"201364882","full_name":"Blevs/react-testing-baseball","owner":"Blevs","description":null,"archived":false,"fork":false,"pushed_at":"2023-01-04T06:41:13.000Z","size":3160,"stargazers_count":8,"open_issues_count":22,"forks_count":6,"subscribers_count":3,"default_branch":"master","last_synced_at":"2023-03-03T18:39:13.513Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/Blevs.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}},"created_at":"2019-08-09T01:26:07.000Z","updated_at":"2022-11-29T21:40:20.000Z","dependencies_parsed_at":"2023-02-02T01:47:00.387Z","dependency_job_id":null,"html_url":"https://github.com/Blevs/react-testing-baseball","commit_stats":null,"previous_names":[],"tags_count":null,"template":null,"template_full_name":null,"purl":"pkg:github/Blevs/react-testing-baseball","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Blevs%2Freact-testing-baseball","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Blevs%2Freact-testing-baseball/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Blevs%2Freact-testing-baseball/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Blevs%2Freact-testing-baseball/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Blevs","download_url":"https://codeload.github.com/Blevs/react-testing-baseball/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Blevs%2Freact-testing-baseball/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":281549787,"owners_count":26520515,"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-10-29T02:00:06.901Z","response_time":59,"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":[],"created_at":"2025-10-29T02:56:23.073Z","updated_at":"2025-10-29T02:56:44.697Z","avatar_url":"https://github.com/Blevs.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Testing II\n\nIn this project, you will demonstrate proficiency by writing unit tests and production code to satisfy the _Minimum Viable Product_ described below.\n\nSome of the topics covered were:\n\n- introduction to testing a React application.\n- using the `react-testing-library` testing framework.\n- writing unit tests for React components.\n\n## Instructions\n\n**Read these requirements carefully. Understand exactly what is expected _before_ starting.**\n\nYou are allowed, and encouraged, to collaborate with your peers while working on this assignment. Remember to follow the _twenty-minute rule_ and post questions to your cohort's help channel before seeking support from your PM and Instructor.\n\n## Commits\n\nPlease push your code often and use descriptive commit messages, this helps you and your project manager.\n\n## Project Description\n\nIn this project, you will **write unit tests and the implementation code** for a React application for _Baseball Stadium_ personnel. The application helps them enter information about the game and have that information shown in the _Score Board Display_ for fans to see.\n\nThe requirements are listed under the _Minimum Viable Product_ section below.\n\n## Project Set Up\n\nFollow these steps to setup your git _fork_ and _branch_.\n\n- [ ] Fork this repository.\n- [ ] Use GitHub's website to add your project manager as collaborator on **your fork**.\n- [ ] **Clone your forked version** of the repository (**Not Lambda's**!).\n- [ ] Create a new branch: `git checkout -b \u003cfirstName-lastName\u003e`.\n- [ ] Commit changes to your `\u003cfirstName-lastName\u003e` branch.\n- [ ] Push often to your branch: `git push origin \u003cfirstName-lastName\u003e`.\n\nFollow these steps for completing your project.\n\n- [ ] Submit a Pull-Request to merge the `\u003cfirstName-lastName\u003e` branch into the master branch on your fork. **Please don't merge your own pull request**\n- [ ] Use GitHub's website to add your project manager as a reviewer on the pull-request.\n- [ ] Your project manager will count the project as complete by merging the branch back into the master branch of your forked repository.\n\n## Minimum Viable Product\n\nAfter a set of interviews with the potential users of the solution, we gathered the following information about the desired functionality. Not all the information provided by our clients is relevant to the design of the solution, but it's included to help understand the requirements.\n\nYour job is to design and build a React application that includes at least two components: `Display` and `Dashboard`. **For the MVP you only need to record information about a player's _\"at bat\"_**.\n\nThe specifications are listed below.\n\n### Count Rules\n\n- balls and strikes reset to 0 when a player reaches 3 strikes or 4 balls.\n- balls and strikes reset to 0 when a `hit` is recorded.\n- a `foul` increases strikes up to 2. With no strikes, a foul makes it 1 strike. With 1 strike, a foul makes it 2 strikes. With two strikes a foul has no effect, count stays at 2 strikes.\n\n### Display\n\n- display the count of `balls` and `strikes` for the at-bat.\n- should be updated when the user records activity on the `Dashboard` component.\n\n### Dashboard\n\n- provide a button that the person in charge can press every time there is a `strike`, `ball`, `foul` or `hit`.\n- there is **NO** need to specify the type of hit (single, double, etc).\n- changes recorded on this component should update the information shown by the `Display` component.\n\nFeel free add other components and organize and name your components any way you want to satisfy the requirements. **Make it up and make it happen developer!**.\n\n## Stretch Problem\n\nThis section is **optional** and not counted towards MVP. Start working on it after you're done with the main assignment.\n\n- Expand the solution to keep track of all the activity of a single inning. Include the number of outs and track them.\n- Expand the solution to keep track of the number of runs and errors in the inning.\n- Expand the solution to keep track of which bases are occupied and to record hits, doubles, triples and home runs.\n- Expand the solution to keep track of all activity across all innings. Display the current inning.\n- Work on [this repository for extra practice testing a legacy React application](https://github.com/LambdaSchool/React-Testing).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblevs%2Freact-testing-baseball","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fblevs%2Freact-testing-baseball","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblevs%2Freact-testing-baseball/lists"}