diff --git a/dest/index.js b/dest/index.js index 8ac3e74..7cf6ed3 100644 --- a/dest/index.js +++ b/dest/index.js @@ -15199,6 +15199,7 @@ class DiffChecker { if (this.changedFiles) { if (this.coverageType === 'cobertura') { const filename = this.diffCoverageReport[file].filename; + console.log('checkOnlyChangedFiles', filename, this.changedFiles.some(filePath => filePath.includes(filename)), this.changedFiles) return this.changedFiles.some(filePath => filePath.includes(filename)); } return this.changedFiles.indexOf(file.substring(1)) > -1; @@ -15212,6 +15213,7 @@ class DiffChecker { if (this.addedFiles) { if (this.coverageType === 'cobertura') { const filename = this.diffCoverageReport[file].filename; + console.log('checkOnlyAddedFiles', filename, this.addedFiles.some(filePath => filePath.includes(filename)), this.addedFiles) return this.addedFiles.some(filePath => filePath.includes(filename)); } return this.addedFiles.indexOf(file.substring(1)) > -1; diff --git a/src/DiffChecker.js b/src/DiffChecker.js index 415f38c..4d6b33f 100644 --- a/src/DiffChecker.js +++ b/src/DiffChecker.js @@ -78,6 +78,7 @@ export class DiffChecker { if (this.changedFiles) { if (this.coverageType === 'cobertura') { const filename = this.diffCoverageReport[file].filename; + console.log('checkOnlyChangedFiles', filename, this.changedFiles.some(filePath => filePath.includes(filename)), this.changedFiles) return this.changedFiles.some(filePath => filePath.includes(filename)); } return this.changedFiles.indexOf(file.substring(1)) > -1; @@ -91,6 +92,7 @@ export class DiffChecker { if (this.addedFiles) { if (this.coverageType === 'cobertura') { const filename = this.diffCoverageReport[file].filename; + console.log('checkOnlyAddedFiles', filename, this.addedFiles.some(filePath => filePath.includes(filename)), this.addedFiles) return this.addedFiles.some(filePath => filePath.includes(filename)); } return this.addedFiles.indexOf(file.substring(1)) > -1;