GildedRose-Refactoring-Kata/TypeScript
Grecu Bogdan d4fea26156 Done
Updated updateQuality method to include conjured mana cake items
Created updateQuality2 method to refactor the code
Created tests for updateQuality and then duplicated the tests for updateQuality2
2022-06-29 13:20:33 +01:00
..
app Done 2022-06-29 13:20:33 +01:00
test Done 2022-06-29 13:20:33 +01:00
.editorconfig
.gitignore
.mocharc.js
.nycrc.js
jest.config.ts
package-lock.json Done 2022-06-29 13:20:33 +01:00
package.json Done 2022-06-29 13:20:33 +01:00
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