This is the Gilded Rose kata in TypeScript.
Install dependencies
npm installYou can run the unit tests using Jest.
npm run testTo run all tests in watch mode
npm run test:watchYou may need to install ts-node
npx ts-node test/golden-master-text-test.tsOr with number of days as args:
npx ts-node test/golden-master-text-test.ts 10You should make sure the command shown above works when you execute it in a terminal before trying to use TextTest (see below).
There are instructions in the TextTest Readme for setting up TextTest. You will need to specify the Python executable and interpreter in config.gr. Uncomment these lines:
executable:${TEXTTEST_HOME}/python/texttest_fixture.py
interpreter:python