From 47837f3119cd66dc80377dd374f98c3c097c6937 Mon Sep 17 00:00:00 2001 From: Giovanni Pellerano Date: Mon, 8 Jan 2024 11:27:30 +0100 Subject: [PATCH] [ci] Revise paths on instrumented code --- client/.nycrc | 4 ++-- client/Gruntfile.js | 6 +++++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/client/.nycrc b/client/.nycrc index 699cc18dbc..eab450e486 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..babeeccde3 100644 --- a/client/Gruntfile.js +++ b/client/Gruntfile.js @@ -430,6 +430,9 @@ module.exports = function(grunt) { shell: { babel: { command: "npx babel build/js --out-dir build/js" + }, + fix_instrumented_paths: { + command: "find ./build/js/ -type f -exec sed -i -- 's/\\/client\\/build/\\/client\\/app/g' {} +" } } }); @@ -1058,6 +1061,7 @@ module.exports = function(grunt) { "clean", "copy:sources", "copy:coverage", - "shell:babel" + "shell:babel", + "shell:fix_instrumented_paths" ]); };