This repository is entirely based on the great Emily Bache's Gilded Rose kata.
Original instructions can be found here.
Install dependencies
yarn
Using ts-node
to run tests would require you to write your own tests.
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
You should make sure the command shown above works when you execute it in a terminal before trying to use TextTest (see below).
You may need to install Python3 for test execution purposes (see below).
brew install python3
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