GildedRose-Refactoring-Kata/js-jest
2023-11-03 15:36:54 +01:00
..
src Add Gilded Rose kata for JavaScript with Jest 2019-10-15 15:52:21 +08:00
test Get texttests working for Javascript-Jest 2023-11-03 15:36:54 +01:00
.gitignore Add Gilded Rose kata for JavaScript with Jest 2019-10-15 15:52:21 +08:00
package-lock.json update jest for better testing experience 2023-10-17 08:52:40 +02:00
package.json Get texttests working for Javascript-Jest 2023-11-03 15:36:54 +01:00
README.md Get texttests working for Javascript-Jest 2023-11-03 15:36:54 +01:00

Gilded Rose in Javascript with Jest

Getting started

Install dependencies

npm install

Run the unit tests from the Command-Line

To run all tests

npm test

To run all tests in watch mode

npm run test:watch

To generate test coverage report

npm run test:coverage

Run the TextTest fixture from the Command-Line

For e.g. 10 days:

node test/texttest_fixture.js 10

You should make sure the command shown above works when you execute it in a terminal before trying to use TextTest (see below).

Run the TextTest approval test that comes with this project

There are instructions in the TextTest Readme for setting up TextTest. You will need to specify the Javascript-Jest executable and interpreter in config.gr. Uncomment these lines:

executable:${TEXTTEST_HOME}/js-jest/test/texttest_fixture.js
interpreter:node