diff --git a/README.md b/README.md index 2dded22..c739ff0 100644 --- a/README.md +++ b/README.md @@ -38,11 +38,11 @@ To run all tests in watch mode: You can run the application seeing how the `updateQuality()` function works: -```npx ts-node test/golden-master-text-test.ts``` +```npm run app``` Or with the number of days as args: -```npx ts-node test/golde-master-text-test.ts 10``` +```npm run app 10``` # Gilded Rose Requirements Specification diff --git a/package.json b/package.json index f9257c8..acab351 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,8 @@ "compile": "tsc", "pretest": "rimraf app/**/*.js test/**/*.js", "test:jest": "jest", - "test:jest:watch": "jest --watchAll" + "test:jest:watch": "jest --watchAll", + "app": "ts-node test/golden-master-text-test.ts" }, "license": "MIT", "private": true,