// Workaround for breakage caused by https://github.com/nodejs/node/pull/5950
// Those changes will be reverted in https://github.com/nodejs/node/pull/6537
// Revert #815 and #827 when the above changes land in Node.js
console.warn('WARNING: `npm link ava` detected: This breaks NYC coverage on early versions of Node 6.\nSee https://github.com/sindresorhus/ava/pull/815');
}
varenv=process.env;
// ensure NODE_PATH paths are absolute
@ -31,10 +42,13 @@ module.exports = function (file, opts) {
}:false
},opts);
varps;
if(fixNpmLink){
// Workaround for breakage caused by https://github.com/nodejs/node/pull/5950
// Those changes will be reverted in https://github.com/nodejs/node/pull/6537
// Revert #815 when these changes land in Node.js
// Revert #815 and #827 when the above changes land in Node.js
varexecArgv=process.execArgv;
varcwd=path.dirname(file);
@ -57,11 +71,18 @@ module.exports = function (file, opts) {