diff --git a/README.md b/README.md index d7519aa..d6bfecf 100644 --- a/README.md +++ b/README.md @@ -11,5 +11,16 @@ To run the tests, simply run $ yarn test ``` +You can also run them in watch mode: +```sh +$ yarn test:watch +``` + +Finally, if you wish to only run the tests for a given exercice `exoN`, you can +run the following: +```sh +$ yarn test[:watch] exoN +``` + The exercices are organized into `exoN` folders and most of what is required to complete each is detailed in the comments. \ No newline at end of file diff --git a/package.json b/package.json index e128c73..6dd4d32 100644 --- a/package.json +++ b/package.json @@ -12,7 +12,8 @@ "homepage": "https://github.com/inato/fp-ts-training", "scripts": { "build": "yarn tsc -b", - "test": "jest --runInBand" + "test": "jest --runInBand", + "test:watch": "jest --runInBand --watch" }, "dependencies": { "decod": "^6.1.6", @@ -28,4 +29,4 @@ "ts-jest": "^26.1.1", "typescript": "^3.9.6" } -} +} \ No newline at end of file