{"id":15315653,"url":"https://github.com/obsfx/gilded-rose-refactoring-case","last_synced_at":"2026-06-04T18:31:25.192Z","repository":{"id":50658474,"uuid":"519684291","full_name":"obsfx/gilded-rose-refactoring-case","owner":"obsfx","description":null,"archived":false,"fork":false,"pushed_at":"2022-07-31T12:42:03.000Z","size":101,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-13T22:18:52.903Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/obsfx.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":"2022-07-31T05:03:20.000Z","updated_at":"2022-07-31T07:00:57.000Z","dependencies_parsed_at":"2022-08-26T23:01:09.916Z","dependency_job_id":null,"html_url":"https://github.com/obsfx/gilded-rose-refactoring-case","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/obsfx%2Fgilded-rose-refactoring-case","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/obsfx%2Fgilded-rose-refactoring-case/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/obsfx%2Fgilded-rose-refactoring-case/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/obsfx%2Fgilded-rose-refactoring-case/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/obsfx","download_url":"https://codeload.github.com/obsfx/gilded-rose-refactoring-case/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241654039,"owners_count":19997785,"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","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":"2024-10-01T08:51:26.906Z","updated_at":"2026-06-04T18:31:25.182Z","avatar_url":"https://github.com/obsfx.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Gilded Rose Refactoring Case\n\nThis is my approach on refactoring the Gilded Rose kata in TypeScript.\n\n## Getting started\n\nClone the repository and navigate to the directory.\n\n```sh\ngit clone git@github.com:obsfx/gilded-rose-refactoring-case.git \u0026\u0026 cd ./gilded-rose-refactoring-case\n```\n\nInstall dependencies.\n\n```sh\nnpm install\n```\n\n## Running app\n\n```sh\nnpx ts-node test/golden-master-text-test.ts\n```\n\nOr with number of days as args:\n\n```sh\nnpx ts-node test/golden-master-text-test.ts 10\n```\n\n## Running tests\n\nTo run all tests.\n\n```sh\nnpm run test:jest\n```\n\nTo run all tests in watch mode\n\n```sh\nnpm run test:jest:watch\n```\n\n---\n\nIn this case study, I did not touch the initially created entry point of the app. I mainly focused on writing tests to ensure we were not breaking previous functionality while refactoring the code and adding the new feature. So most of the changes happened in the `./app` directory and the `./test/jest/gilded-rose.spec.ts` file.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fobsfx%2Fgilded-rose-refactoring-case","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fobsfx%2Fgilded-rose-refactoring-case","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fobsfx%2Fgilded-rose-refactoring-case/lists"}