From 202e0a0bb6bea4ed235fb29c4cc3822a0b1855c8 Mon Sep 17 00:00:00 2001 From: Hannah Wolfe Date: Wed, 9 Jun 2021 10:08:32 +0100 Subject: [PATCH] Added coverage reporting for tpl package - this is 100% already --- ghost/tpl/package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ghost/tpl/package.json b/ghost/tpl/package.json index fc0b1008c7..5a52438974 100644 --- a/ghost/tpl/package.json +++ b/ghost/tpl/package.json @@ -7,7 +7,7 @@ "main": "index.js", "scripts": { "dev": "echo \"Implement me!\"", - "test": "NODE_ENV=testing mocha './test/**/*.test.js'", + "test": "NODE_ENV=testing c8 --check-coverage mocha './test/**/*.test.js'", "lint": "eslint . --ext .js --cache", "posttest": "yarn lint" }, @@ -24,6 +24,7 @@ "sinon": "11.1.1" }, "dependencies": { + "c8": "^7.7.2", "lodash.template": "^4.5.0" } }