From 305c26fe1cf9a4fb7a2e48845cb5ea1459db7dfe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Remko=20Tron=C3=A7on?= Date: Tue, 12 Mar 2019 21:05:34 +0100 Subject: [PATCH] Add test-watch target --- Makefile | 3 +++ package.json | 1 + 2 files changed, 4 insertions(+) diff --git a/Makefile b/Makefile index 3502407..d6e2d54 100644 --- a/Makefile +++ b/Makefile @@ -40,5 +40,8 @@ clean: check: $(WASM_FILES) yarn -s test +check-watch: $(WASM_FILES) + yarn -s test-watch + lint: yarn -s lint diff --git a/package.json b/package.json index 9b62b8b..dc65d9b 100644 --- a/package.json +++ b/package.json @@ -29,6 +29,7 @@ "scripts": { "build": "webpack --mode=production", "test": "mocha tests/index-node.js", + "test-watch": "mocha --watch tests/index-node.js", "lint": "eslint .", "dev-server": "webpack-dev-server --open --openPage waforth --content-base public"