Skip to content

Commit 8b7097d

Browse files
committed
Add watch-test Script
1 parent 6b97068 commit 8b7097d

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -261,6 +261,7 @@ Below is a list of all the scripts this template has available:
261261
| `watch-node` | Runs node with nodemon so the process restarts if it crashes. Used in the main watch task |
262262
| `watch` | Runs all watch tasks (TypeScript, Sass, Node). Use this if you're not touching static assets. |
263263
| `test` | Runs tests using Jest test runner |
264+
| `watch-test` | Runs tests in watch mode |
264265
| `build-ts` | Compiles all source `.ts` files to `.js` files in the `dist` folder |
265266
| `watch-ts` | Same as `build-ts` but continuously watches `.ts` files and re-compiles when needed |
266267
| `build-sass` | Compiles all `.scss` files to `.css` files |

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
"watch-node": "nodemon dist/server.js",
1616
"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\"",
1717
"test": "jest --forceExit --coverage --verbose",
18+
"watch-test": "npm run test -- --watchAll",
1819
"build-ts": "tsc",
1920
"watch-ts": "tsc -w",
2021
"build-sass": "node-sass src/public/css/main.scss dist/public/css/main.css",

0 commit comments

Comments
 (0)