From e0565e5b9a3ab6e3143169df47029c00b9588e4f Mon Sep 17 00:00:00 2001 From: dandds Date: Wed, 25 Sep 2019 09:58:09 -0400 Subject: [PATCH] Measure JS test coverage for entire js directory. Add an additional flag to the yarn `test` script. --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index e5c95e60..3b7f50c4 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,7 @@ "watch": "parcel watch js/index.js -d static/assets --public-url /static/assets -o index.js --no-autoinstall", "build": "parcel build js/index.js -d static/assets --public-url /static/assets -o index.js", "test": "jest", - "test:coverage": "jest --coverage", + "test:coverage": "jest --coverage --collectCoverageFrom='js/**/*.js'", "test:watch": "jest --watch --no-cache" }, "author": "",