From 26adc6ac0e9290eadb065e87fe8afaa2c051a801 Mon Sep 17 00:00:00 2001 From: Hannah Wolfe Date: Fri, 4 Feb 2022 15:10:54 +0000 Subject: [PATCH] Added c8 --all to surface true members-api coverage refs: https://github.com/TryGhost/Toolbox/issues/203 - Without the all flag only files touched by tests are counted - This shows our unit-testing picture more clearly - Will get this change rolled out across all repos and packages ASAP, but for now this one seemed most important --- ghost/members-api/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ghost/members-api/package.json b/ghost/members-api/package.json index 2cf922db4c..25e457841b 100644 --- a/ghost/members-api/package.json +++ b/ghost/members-api/package.json @@ -7,7 +7,7 @@ "main": "index.js", "scripts": { "dev": "echo \"Implement me!\"", - "test": "NODE_ENV=testing c8 --reporter text --reporter cobertura mocha --reporter dot './test/**/*.test.js'", + "test": "NODE_ENV=testing c8 --all --reporter text --reporter cobertura mocha --reporter dot './test/**/*.test.js'", "lint": "eslint '**/*.js'", "posttest": "yarn lint" },