This is the Gilded Rose kata in TypeScript.
Initial messy code: main
Semantic refactor: 01-semantic-refactor
SOLIDification: 02-solidification-with-item-class-modification
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