Skip to content

Commit

Permalink
Merge e55b6dc into 86c1c09
Browse files Browse the repository at this point in the history
  • Loading branch information
alpersogukpinar committed Jan 16, 2017
2 parents 86c1c09 + e55b6dc commit 73d8506
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,11 @@ function makeShouldSkip () {
return function shouldSkip (file, opts) {
if (!exclude) {
const cwd = getRealpath(process.env.NYC_CWD || process.cwd())
const defaults = process.env.NYC_CONFIG ? JSON.parse(process.env.NYC_CONFIG) : {}
exclude = testExclude(assign(
{ cwd },
Object.keys(opts).length > 0 ? opts : {
include: defaults.include,
configKey: 'nyc',
configPath: dirname(findUp.sync('package.json', { cwd }))
}
Expand Down

0 comments on commit 73d8506

Please sign in to comment.