Skip to content

Commit

Permalink
Take precedence of NODE_PATH when resolving node_modules directories (j…
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebastian McKenzie authored and tabrindle committed Oct 2, 2017
1 parent b9eb222 commit 5a83b77
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 5a83b77

Please sign in to comment.