Skip to content

Commit

Permalink
Can't recreate this issue locally, so I'm running Travis CI tests wit…
Browse files Browse the repository at this point in the history
…h debug code for now
  • Loading branch information
Andrew Finlay committed Feb 21, 2019
1 parent b1d148e commit 82ed06e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,8 @@ NYC.prototype.walkAllFiles = function (dir, visitor) {
)
const filesLessExcludes = glob.sync(sourceGlob, { cwd: dir, nodir: true, ignore: this.exclude.exclude })

console.log(`unExcludeFiles: ${unExcludeFiles}`)

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

Expand Down
2 changes: 2 additions & 0 deletions test/nyc-bin.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ describe('the nyc cli', function () {

proc.on('close', code => {
code.should.equal(0)
console.log(`stdout: ${stdout}`)
stdout.should.not.match(/excluded\.js/)
stdout.should.match(/exclude-negated\.js/)
done()
Expand All @@ -138,6 +139,7 @@ describe('the nyc cli', function () {

proc.on('close', code => {
code.should.equal(0)
console.log(`stdout: ${stdout}`)
const target = path.resolve(fixturesCLI, 'include-exclude', 'node_modules', 'cover-me.js')
fs.readFileSync(target, 'utf8').should.match(/console.log\('Hello, World!'\)/)
stdout.should.match(/include-exclude\/node_modules/)
Expand Down

0 comments on commit 82ed06e

Please sign in to comment.