Skip to content

Commit

Permalink
jest-8063: Fix for paths created via SUBST
Browse files Browse the repository at this point in the history
This is a fix for the bug reported here: jestjs/jest#8063

I'm not sure if this is the correct fix or not, it would be good to get verification before merge. Though Jest on my local machine is now operating correctly after this change.
  • Loading branch information
Mark-J-Lawrence authored Mar 6, 2019
1 parent 7808c3d commit b5153ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ function realpathSync(filepath) {

if (fsBinding.realpath) {
try {
return fsBinding.realpath(filepath, 'utf8');
return fsBinding.realpathSync(filepath);
} catch (err) {
/* Probably RAM-disk on windows. */
}
Expand Down

0 comments on commit b5153ae

Please sign in to comment.