Skip to content

Commit

Permalink
Debug testing
Browse files Browse the repository at this point in the history
So the exclude negated node_modules test worked last time, but the debug out triggered a different test failure.
If this works how I think, it should fail the exclude negated test but pass the source-maps --all test
  • Loading branch information
Andrew Finlay committed Feb 21, 2019
1 parent 82ed06e commit 5af7f97
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions index.js
Expand Up @@ -255,9 +255,10 @@ NYC.prototype.walkAllFiles = function (dir, visitor) {
)
const filesLessExcludes = glob.sync(sourceGlob, { cwd: dir, nodir: true, ignore: this.exclude.exclude })

console.log(`unExcludeFiles: ${unExcludeFiles}`)
const allFiles = filesLessExcludes.concat(unExcludeFiles)
const uniqFiles = arrayUniq(allFiles)

return arrayUniq(filesLessExcludes.concat(unExcludeFiles)).forEach(visitor)
return uniqFiles.forEach(visitor)
}

NYC.prototype._maybeInstrumentSource = function (code, filename, relFile) {
Expand Down

0 comments on commit 5af7f97

Please sign in to comment.