From e710db370cd99488a907d75aac0fdea78062ade4 Mon Sep 17 00:00:00 2001 From: Martin Jul Date: Tue, 20 Oct 2015 16:15:57 +0200 Subject: [PATCH 1/2] Add target to run tests continuously Enables `npm run test:watch` --- package.json | 1 + 1 file changed, 1 insertion(+) diff --git a/package.json b/package.json index 4b1eecc..55b1e9d 100644 --- a/package.json +++ b/package.json @@ -6,6 +6,7 @@ "scripts": { "start": "node server.js --env=dev", "test": "karma start", + "test:watch": "karma start --singleRun=false", "posttest": "npm run lint", "serve": "node server.js --env=dev", "serve:dist": "node server.js --env=dist", From 1424f8f41dbb1bc81444746f243ab811f8f32646 Mon Sep 17 00:00:00 2001 From: Martin Jul Date: Tue, 20 Oct 2015 16:25:32 +0200 Subject: [PATCH 2/2] Add info on running tests continuously --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index c79cb32..6a9ddf7 100644 --- a/README.md +++ b/README.md @@ -38,6 +38,9 @@ npm run dist # Run unit tests npm test +# Run the unit tests continuously (repeat the test when code changes are saved) +npm run test:watch + # Lint all files in src (also automatically done AFTER tests are run) npm run lint @@ -67,3 +70,4 @@ react-webpack-template is available under MIT-License and can therefore be used ## Contributors - Weblogixx (cs@weblogixx.de) +- Martin Jul (martin@mjul.com)