Skip to content

Commit

Permalink
Merge pull request #2 from HavenEngineering/fix/show-package-test-cov…
Browse files Browse the repository at this point in the history
…erage

Fix/show package test coverage
  • Loading branch information
lakpa authored Sep 26, 2024
2 parents bd79f4c + f3d1031 commit 737c862
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 9 deletions.
5 changes: 1 addition & 4 deletions dist/main.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -30424,10 +30424,7 @@ function filterAndNormaliseLcov(lcov, options) {
}

function shouldBeIncluded(fileName, options) {
if (!options.shouldFilterChangedFiles) {
return true
}
return options.changedFiles.includes(fileName.replace(options.prefix, ""))
return !options.shouldFilterChangedFiles
}

function toFolder(path) {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "lcov-reporter-action",
"version": "0.2.20",
"version": "0.2.21",
"private": true,
"description": "Comments a pull request with the lcov code coverage",
"license": "MIT",
Expand Down
5 changes: 1 addition & 4 deletions src/tabulate.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,7 @@ function filterAndNormaliseLcov(lcov, options) {
}

function shouldBeIncluded(fileName, options) {
if (!options.shouldFilterChangedFiles) {
return true
}
return options.changedFiles.includes(fileName.replace(options.prefix, ""))
return !options.shouldFilterChangedFiles
}

function toFolder(path) {
Expand Down

0 comments on commit 737c862

Please sign in to comment.