Skip to content

Commit

Permalink
fix: take realpath of cwd, whether or not set in env
Browse files Browse the repository at this point in the history
  • Loading branch information
motiz88 committed Sep 5, 2016
1 parent 0bd16cf commit ecd22ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ let exclude
function shouldSkip (file, opts) {
if (!exclude) {
exclude = testExclude(Object.keys(opts).length > 0 ? opts : {
cwd: process.env.NYC_CWD || getRealpath(process.cwd()),
cwd: getRealpath(process.env.NYC_CWD || process.cwd()),
configKey: 'nyc',
configPath: dirname(findUp.sync('package.json'))
})
Expand Down

0 comments on commit ecd22ea

Please sign in to comment.