mirror of
https://github.com/emilybache/GildedRose-Refactoring-Kata.git
synced 2025-12-12 20:32:15 +00:00
| .. | ||
| app | ||
| test | ||
| .editorconfig | ||
| .gitignore | ||
| .mocharc.js | ||
| .nycrc.js | ||
| jest.config.ts | ||
| package-lock.json | ||
| package.json | ||
| README.md | ||
| tsconfig.json | ||
Gilded Rose
This is the Gilded Rose kata in TypeScript.
Getting started
Install dependencies
npm install
Running app
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
Running tests
To run all tests
Jest way
npm run test:jest
To run all tests in watch mode
npm run test:jest:watch
Mocha way
npm run test:mocha