From 8b7097d18d23c46f9e5b4e0aa60757424e025bca Mon Sep 17 00:00:00 2001 From: Sam Severance Date: Wed, 11 Apr 2018 17:06:30 -0400 Subject: [PATCH] Add `watch-test` Script --- README.md | 1 + package.json | 1 + 2 files changed, 2 insertions(+) diff --git a/README.md b/README.md index 00957e07..7da9eec7 100644 --- a/README.md +++ b/README.md @@ -261,6 +261,7 @@ Below is a list of all the scripts this template has available: | `watch-node` | Runs node with nodemon so the process restarts if it crashes. Used in the main watch task | | `watch` | Runs all watch tasks (TypeScript, Sass, Node). Use this if you're not touching static assets. | | `test` | Runs tests using Jest test runner | +| `watch-test` | Runs tests in watch mode | | `build-ts` | Compiles all source `.ts` files to `.js` files in the `dist` folder | | `watch-ts` | Same as `build-ts` but continuously watches `.ts` files and re-compiles when needed | | `build-sass` | Compiles all `.scss` files to `.css` files | diff --git a/package.json b/package.json index 54e7cc1f..51930fb0 100644 --- a/package.json +++ b/package.json @@ -15,6 +15,7 @@ "watch-node": "nodemon dist/server.js", "watch": "concurrently -k -p \"[{name}]\" -n \"Sass,TypeScript,Node\" -c \"yellow.bold,cyan.bold,green.bold\" \"npm run watch-sass\" \"npm run watch-ts\" \"npm run watch-node\"", "test": "jest --forceExit --coverage --verbose", + "watch-test": "npm run test -- --watchAll", "build-ts": "tsc", "watch-ts": "tsc -w", "build-sass": "node-sass src/public/css/main.scss dist/public/css/main.css",