aboutsummaryrefslogtreecommitdiffstats
path: root/package.json
diff options
context:
space:
mode:
authorDan Finlay <dan@danfinlay.com>2018-06-13 02:13:44 +0800
committerDan Finlay <dan@danfinlay.com>2018-06-13 02:13:44 +0800
commit9c77af1ce6df5151bbf4b89288791057e83e215c (patch)
tree073f5c567051bc18b55dd8d3051a5c6245c6b47b /package.json
parentf08442e266e4acb2b7f90acfe0f9e54e7704b8aa (diff)
downloadtangerine-wallet-browser-9c77af1ce6df5151bbf4b89288791057e83e215c.tar
tangerine-wallet-browser-9c77af1ce6df5151bbf4b89288791057e83e215c.tar.gz
tangerine-wallet-browser-9c77af1ce6df5151bbf4b89288791057e83e215c.tar.bz2
tangerine-wallet-browser-9c77af1ce6df5151bbf4b89288791057e83e215c.tar.lz
tangerine-wallet-browser-9c77af1ce6df5151bbf4b89288791057e83e215c.tar.xz
tangerine-wallet-browser-9c77af1ce6df5151bbf4b89288791057e83e215c.tar.zst
tangerine-wallet-browser-9c77af1ce6df5151bbf4b89288791057e83e215c.zip
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.
Diffstat (limited to 'package.json')
-rw-r--r--package.json1
1 files changed, 1 insertions, 0 deletions
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",