From 5dd6cb909f7f447357913363a18015b535c2a56e Mon Sep 17 00:00:00 2001 From: Naz Date: Tue, 29 Nov 2022 14:22:27 +0700 Subject: [PATCH] Tweaked code coverage config for e2e tests refs https://github.com/TryGhost/Toolbox/issues/475 refs https://github.com/TryGhost/Toolbox/issues/117 - The frontend/src folded would never get picked up by a code coverage tooling as scripts there are dynamically minimized and served from the server - There's nothing to cover under frontend/public - Logic behind these changes is the same as in second referenced issue --- ghost/core/.c8rc.e2e.json | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ghost/core/.c8rc.e2e.json b/ghost/core/.c8rc.e2e.json index 711e197f1b..a1dd55e303 100644 --- a/ghost/core/.c8rc.e2e.json +++ b/ghost/core/.c8rc.e2e.json @@ -10,11 +10,13 @@ "statements": 78, "branches": 80, "functions": 80, - "lines": 78, + "lines": 79, "include": [ "core/{*.js,frontend,server,shared}" ], "exclude": [ + "core/frontend/src/**", + "core/frontend/public/**", "core/server/data/migrations/**", "!core/server/data/migrations/utils.js" ]