GildedRose-Refactoring-Kata/TypeScript
2023-10-18 23:24:16 +09:00
..
app Refactor: use union type in ItemName type to implement Item interface 2023-10-18 23:24:16 +09:00
test Refactor: add test cases 2023-09-26 08:09:16 +09:00
.editorconfig Add Jest to TypeScript (and update dependencies) 2021-11-09 18:41:26 +01:00
.gitignore Refactor: use items constants 2023-09-23 23:11:10 +09:00
.mocharc.js Add Jest to TypeScript (and update dependencies) 2021-11-09 18:41:26 +01:00
.nycrc.js Add Jest to TypeScript (and update dependencies) 2021-11-09 18:41:26 +01:00
jest.config.ts Add vitest inside TypeScript 2023-02-22 11:33:47 +01:00
package-lock.json Add vitest inside TypeScript 2023-02-22 11:33:47 +01:00
package.json Add vitest inside TypeScript 2023-02-22 11:33:47 +01:00
README.md Readme updated 2022-02-10 10:13:36 +01:00
tsconfig.json Add vitest inside TypeScript 2023-02-22 11:33:47 +01:00
vitest.config.ts Add vitest inside TypeScript 2023-02-22 11:33:47 +01:00
yarn.lock Add: unit test 2023-09-23 00:16:40 +09:00

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