{"id":16614668,"url":"https://github.com/nicoespeon/refactoringjavascript-kata","last_synced_at":"2026-05-28T06:03:12.777Z","repository":{"id":69086014,"uuid":"411661796","full_name":"nicoespeon/refactoringjavascript-kata","owner":"nicoespeon","description":"A coding exercise to practice your Atomic Refactorings skills","archived":false,"fork":false,"pushed_at":"2021-09-29T13:39:39.000Z","size":39,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-10T23:59:49.649Z","etag":null,"topics":["coding-challenge","coding-kata","legacy-code","refactoring"],"latest_commit_sha":null,"homepage":"https://refactoringjavascript.dev","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nicoespeon.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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}},"created_at":"2021-09-29T12:18:04.000Z","updated_at":"2021-09-29T13:41:30.000Z","dependencies_parsed_at":null,"dependency_job_id":"c776b025-868e-4863-8910-3f9b8560d386","html_url":"https://github.com/nicoespeon/refactoringjavascript-kata","commit_stats":{"total_commits":3,"total_committers":1,"mean_commits":3.0,"dds":0.0,"last_synced_commit":"c323cf24eee29df7d596baf6e3fd6f53db9ffb86"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/nicoespeon/refactoringjavascript-kata","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nicoespeon%2Frefactoringjavascript-kata","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nicoespeon%2Frefactoringjavascript-kata/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nicoespeon%2Frefactoringjavascript-kata/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nicoespeon%2Frefactoringjavascript-kata/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nicoespeon","download_url":"https://codeload.github.com/nicoespeon/refactoringjavascript-kata/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nicoespeon%2Frefactoringjavascript-kata/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":27760141,"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-12-16T02:00:10.477Z","response_time":57,"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":["coding-challenge","coding-kata","legacy-code","refactoring"],"created_at":"2024-10-12T02:07:12.874Z","updated_at":"2025-12-16T06:01:39.631Z","avatar_url":"https://github.com/nicoespeon.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Refactoring JavaScript: Kata\n\n\u003e A coding playground to practice your refactoring skills.\n\nI have crafted this kata for the [Refactoring JavaScript](https://refactoringjavascript.dev/) course 🎓\n\nIt is based on [J. B. Rainsberger's Trivia kata](https://github.com/jbrains/trivia), which is itself a fork from [a Legacy Code Retreat kata](https://github.com/caradojo/trivia).\n\n## Exercise\n\n**Your goal is to refactor `Game` without breaking the tests, spending as few time as possible in a \"broken\" state.**\n\nIn watch mode, each save will run the tests again.\n\nHow **short** can you spend time between each test? The shortest, the better.\n\nEach time you save and tests stay green is a victory 🏆\n\n## Pre-requisite\n\n[Node.js](https://nodejs.org/en/download/releases/) `\u003e= v14` and `\u003c v17`\n\nYou can use [nvm](https://github.com/nvm-sh/nvm) or [n](https://github.com/tj/n) to install a specific version of Node.\n\n## Installation\n\n1. Clone the repository: `git clone git@github.com:nicoespeon/refactoringjavascript-kata.git`\n2. Install dependencies: `npm install`\n\n## Run the tests\n\nWhile working, I recommend you run them in watch mode:\n\n```\nnpm test -- --watch\n```\n\nYou can launch a single test run with `npm test`\n\nTests are using [Jest](https://jestjs.io/) to run.\n\nSince this kata is tailored for refactorings, tests are already present. Your goal is NOT to understand, nor update these tests.\n\nIf you want to practice writing tests on existing code, I recommend:\n\n- Learn about [Approval Testing]()\n- Use one of [these refactorings kata]()\n- Have a look at [Testing JavaScript](https://testingjavascript.com/) course from Kent C. Dodds\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnicoespeon%2Frefactoringjavascript-kata","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnicoespeon%2Frefactoringjavascript-kata","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnicoespeon%2Frefactoringjavascript-kata/lists"}