From 9c77af1ce6df5151bbf4b89288791057e83e215c Mon Sep 17 00:00:00 2001 From: Dan Finlay Date: Tue, 12 Jun 2018 11:13:44 -0700 Subject: Add script for auto-re-running tests on change `npm run watch:test:unit` will re-run the unit test suite whenever a file in `app`, `ui`, or `test` changes. --- package.json | 1 + 1 file changed, 1 insertion(+) (limited to 'package.json') diff --git a/package.json b/package.json index c08ae455b..d9e0bbec5 100644 --- a/package.json +++ b/package.json @@ -9,6 +9,7 @@ "dist": "gulp dist", "doc": "jsdoc -c development/tools/.jsdoc.json", "test": "npm run test:unit && npm run test:integration && npm run lint", + "watch:test:unit": "nodemon --exec \"npm run test:unit\" ./test ./app ./ui", "test:unit": "cross-env METAMASK_ENV=test mocha --exit --require test/setup.js --recursive \"test/unit/**/*.js\" \"ui/app/**/*.test.js\" && dot-only-hunter", "test:single": "cross-env METAMASK_ENV=test mocha --require test/helper.js", "test:integration": "npm run test:integration:build && npm run test:flat && npm run test:mascara", -- cgit v1.2.3