From bb265f20aeae45ada480824e1aaf8d252f701d72 Mon Sep 17 00:00:00 2001 From: Giovanni Pellerano Date: Mon, 8 Jan 2024 14:34:28 +0100 Subject: [PATCH] [ci] Revise code related to code coverage tracking --- client/.nycrc | 4 ++-- client/Gruntfile.js | 16 ++-------------- 2 files changed, 4 insertions(+), 16 deletions(-) diff --git a/client/.nycrc b/client/.nycrc index 699cc18dbc..39f2abdf12 100644 --- a/client/.nycrc +++ b/client/.nycrc @@ -1,7 +1,7 @@ { "reporter": ["lcov", "text-summary"], - "include": ["build/js/**/*"], - "exclude": ["cypress/**/*", "node_modules/**/*", "app/**/*", "build/lib/**/*"], + "include": ["app/js/**/*"], + "exclude": ["cypress/**, "node_modules/**", "app/lib/**/*"], "check-coverage": false, "report-dir": "cypress/coverage", "sourceMap": false diff --git a/client/Gruntfile.js b/client/Gruntfile.js index f06b0841fb..3bf525123f 100644 --- a/client/Gruntfile.js +++ b/client/Gruntfile.js @@ -111,18 +111,6 @@ module.exports = function(grunt) { } ] - }, - coverage: { - files: [{ - dest: "build/", - cwd: "app/", - src: [ - "**", - "lib/js/*.js", // and copy scripts that should not be instrumented. - "lib/js/locale/*.js" - ], - expand: true - }] } }, @@ -427,9 +415,10 @@ module.exports = function(grunt) { } } }, + shell: { babel: { - command: "npx babel build/js --out-dir build/js" + command: "npx babel app/js --out-dir app/js" } } }); @@ -1057,7 +1046,6 @@ module.exports = function(grunt) { grunt.registerTask("instrument-client", [ "clean", "copy:sources", - "copy:coverage", "shell:babel" ]); };