From a81d90b126d1d744e3006f16fd4cb91eb285957d Mon Sep 17 00:00:00 2001 From: Daniel Lockyer Date: Fri, 7 May 2021 12:33:53 +0100 Subject: [PATCH] Added c8 coverage to `package-json` tests no issue - this commit adds the c8 dependency to the `package-json`, and prepends it to the test alias so we can see the coverage in tests - note: we're apparently already at 100%! --- ghost/package-json/package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ghost/package-json/package.json b/ghost/package-json/package.json index a470a6ecc7..b30a263cb4 100644 --- a/ghost/package-json/package.json +++ b/ghost/package-json/package.json @@ -7,7 +7,7 @@ "main": "index.js", "scripts": { "dev": "echo \"Implement me!\"", - "test": "NODE_ENV=testing mocha './test/**/*_spec.js'", + "test": "NODE_ENV=testing c8 --check-coverage mocha './test/**/*_spec.js'", "lint": "eslint . --ext .js --cache", "posttest": "yarn lint" }, @@ -19,6 +19,7 @@ "access": "public" }, "devDependencies": { + "c8": "7.7.2", "mocha": "8.3.2", "should": "13.2.3", "sinon": "10.0.0",