This is my refactored version for the Gilded Rose kata in TypeScript. https://github.com/emilybache/GildedRose-Refactoring-Kata/tree/main/TypeScript
Install dependencies
npm install
You may need to install ts-node
npx ts-node test/golden-master-text-test.ts
Or with number of days as args:
npx ts-node test/golden-master-text-test.ts 10
To run all tests
npm run test:jest
To run all tests in watch mode
npm run test:jest:watch
npm run test:mocha