Skip to content

Commit

Permalink
Fix error introduced by when resolving conflict
Browse files Browse the repository at this point in the history
It's possible for `config.excludeNodeModules` to be undefined, this is viewed by testExclude as 'not true'.
  • Loading branch information
coreyfarrell committed Apr 2, 2019
1 parent a24deea commit 122e9d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Expand Up @@ -58,7 +58,7 @@ function NYC (config) {
cwd: this.cwd,
include: config.include,
exclude: config.exclude,
excludeNodeModules: config.excludeNodeModules,
excludeNodeModules: config.excludeNodeModules !== false,
extension: this.extensions
})

Expand Down

0 comments on commit 122e9d9

Please sign in to comment.