]> git.ardis.lu - block-hash-calculator/commitdiff
Add "test:watch" script
authorArdis Lu <ardisglu@gmail.com>
Fri, 14 Jun 2024 04:16:51 +0000 (21:16 -0700)
committerArdis Lu <ardisglu@gmail.com>
Fri, 14 Jun 2024 04:16:51 +0000 (21:16 -0700)
Intentionally calling "node --watch calculate.test.js" instead of doing "node --test --watch" to clear console on re-runs.

package.json

index 7346f03c9afd1e3b0faf67616def5f2381a6a983..d50b147a3ab84590eaed1e3c5e1dce5e5f2d7f45 100644 (file)
@@ -7,6 +7,7 @@
     "build": "esbuild vendor.js --bundle --minify --format=esm --outfile=vendor.min.js",
     "pretest": "npm run build",
     "test": "node --test",
+    "test:watch": "npm run test && node --watch --test-reporter=dot calculate.test.js",
     "test:coverage": "npm run test -- --experimental-test-coverage"
   },
   "devDependencies": {
This page took 0.03511 seconds and 4 git commands to generate.