]> git.ardis.lu - csvio/commitdiff
Add npm script for running test coverage report
authorArdis Lu <ardisglu@gmail.com>
Tue, 28 Jan 2025 07:26:05 +0000 (23:26 -0800)
committerArdis Lu <ardisglu@gmail.com>
Tue, 28 Jan 2025 07:26:05 +0000 (23:26 -0800)
README.md
package.json

index c1a2ea294b489a4fc436c714b4b01eba6a59aa09..9dd099012767ac8dc9d5e2fd88ce603944dc6337 100644 (file)
--- a/README.md
+++ b/README.md
@@ -156,6 +156,12 @@ Run primary tests:
 npm test
 ```
 
+Run coverage report for primary tests:
+
+```plaintext
+npm run test:coverage
+```
+
 Run `large.test.js` tests (writing, reading, and transforming ~100 MB CSV files). These tests take ~30s to complete, so they are separated from the primary tests:
 
 ```plaintext
index b2680408a34e3c5fa1fc6ceb17ae40932a033bcd..026b024d4631c0ea17adb878ffc95bafce123a2d 100644 (file)
@@ -15,6 +15,7 @@
   "exports": "./src/index.js",
   "scripts": {
     "test": "node --test --test-skip-pattern=\"/^large:*/\"",
-    "test:large": "node --test --test-name-pattern=\"/^large:*/\""
+    "test:large": "node --test --test-name-pattern=\"/^large:*/\"",
+    "test:coverage": "npm run test -- --experimental-test-coverage"
   }
 }
This page took 0.035903 seconds and 4 git commands to generate.