diff --git a/Makefile b/Makefile index f914b9b..c7122ef 100644 --- a/Makefile +++ b/Makefile @@ -152,12 +152,18 @@ out/vcd.wasm: $(WASM_MAIN) $(CPP_FILES) $(HPP_FILES) Makefile .PHONY: all build watch dev start test pretest lint jestc copydist cleandist -.PHONY: test +.PHONY: test testonly +watch: + npm run watch + test: npm run test +testonly: + npm run testonly + clean: rm -rf out/* diff --git a/package.json b/package.json index 86b3e3e..eccc267 100644 --- a/package.json +++ b/package.json @@ -5,6 +5,8 @@ "main": "lib/index.js", "scripts": { "test": "eslint bin lib && nyc -r=text -r=lcov mocha", + "testonly": "nyc -r=text -r=lcov mocha", + "watch": "mocha --watch", "install": "node bin/build.js", "prepare": "node bin/build.js" },