Skip to content

Commit

Permalink
[ci] Revise code related to code coverage tracking
Browse files Browse the repository at this point in the history
  • Loading branch information
evilaliv3 committed Jan 9, 2024
1 parent 7084f39 commit 169e582
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 16 deletions.
4 changes: 2 additions & 2 deletions client/.nycrc
Original file line number Diff line number Diff line change
@@ -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
Expand Down
16 changes: 2 additions & 14 deletions client/Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
}]
}
},

Expand Down Expand Up @@ -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"
}
}
});
Expand Down Expand Up @@ -1057,7 +1046,6 @@ module.exports = function(grunt) {
grunt.registerTask("instrument-client", [
"clean",
"copy:sources",
"copy:coverage",
"shell:babel"
]);
};

0 comments on commit 169e582

Please sign in to comment.