Skip to content

Commit

Permalink
Take precedence of NODE_PATH when resolving node_modules directories (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebastian McKenzie authored and cpojer committed Sep 8, 2017
1 parent 6b484db commit fab01c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/jest-resolve/src/node_modules_paths.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ function nodeModulesPaths(
);
}, []);

return options.paths ? dirs.concat(options.paths) : dirs;
return options.paths ? options.paths.concat(dirs) : dirs;
}

module.exports = nodeModulesPaths;

0 comments on commit fab01c7

Please sign in to comment.