Skip to content

Commit

Permalink
add logs
Browse files Browse the repository at this point in the history
  • Loading branch information
islyn committed Mar 13, 2024
1 parent ff490ee commit 0c8d3c9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions dest/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
Expand Down
2 changes: 2 additions & 0 deletions src/DiffChecker.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
Expand Down

0 comments on commit 0c8d3c9

Please sign in to comment.