From 99e385df81221f803e5e50cfcd0dfdc3df5da09e Mon Sep 17 00:00:00 2001 From: Michael Krotscheck Date: Fri, 5 Jun 2015 08:32:41 -0700 Subject: [PATCH] Added test-auto-watch target This switches the old `npm run test-single-run` to `npm run test-auto-watch`, which I feel is a little more useful for day-to-day development. It'll rerun tests whenever it detects changes in its configured files. Change-Id: I453c47794cb0a4777cd1fac64b2db3000020f5bf Depends-on: I26fc5b1f780453202af8d1d43575bbf2aa53d27e --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index c44aa04b..75730bb7 100644 --- a/package.json +++ b/package.json @@ -23,7 +23,7 @@ "start": "http-server ./refstack-ui/app -a 0.0.0.0 -p 8080", "pretest": "npm install", "test": "karma start ./refstack-ui/tests/karma.conf.js --single-run", - "test-single-run": "karma start ./refstack-ui/tests/karma.conf.js --single-run", + "test-auto-watch": "karma start ./refstack-ui/tests/karma.conf.js --auto-watch", "lint": "eslint -c ./.eslintrc --no-color ./refstack-ui" } }