From b98e2a673ecda36087daee4de8cd362211a5f193 Mon Sep 17 00:00:00 2001 From: Hugo Saracino Date: Tue, 8 Dec 2020 16:51:32 +0100 Subject: [PATCH] =?UTF-8?q?=E2=9C=85=20Add=20an=20option=20to=20run=20test?= =?UTF-8?q?s=20in=20watch=20mode?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Also add some explanations on how to run tests for a specific exercise only. --- README.md | 11 +++++++++++ package.json | 5 +++-- 2 files changed, 14 insertions(+), 2 deletions(-) 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