Skip to content

Commit

Permalink
Update nodecover.js
Browse files Browse the repository at this point in the history
Error: require.paths is removed. Use node_modules folders, or the NODE_PATH environment variable instead.

I've removed the require.paths from the nodecover.js file so it runs with the latest node.
  • Loading branch information
Simon Richardson committed Aug 21, 2013
1 parent 97953a3 commit 2f99994
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions lib/nodecover.js
Original file line number Diff line number Diff line change
Expand Up @@ -183,10 +183,7 @@ var restoreFiles = function(files) {

exports.process = function(dirList,testDirs) {
console.log('process('+dirList+','+testDirs+')');
if (require.paths.indexOf(__dirname)<0) {
require.paths.unshift(__dirname);
}


var listOfFiles = [];
var stat;
for (i=0;i<dirList.length;i++) {
Expand Down

0 comments on commit 2f99994

Please sign in to comment.