diff --git a/packages/jest-resolve/src/default_resolver.js b/packages/jest-resolve/src/default_resolver.js index 72f5706d4aa8..aa0e5b1f64af 100644 --- a/packages/jest-resolve/src/default_resolver.js +++ b/packages/jest-resolve/src/default_resolver.js @@ -94,11 +94,6 @@ function resolveSync(target: Path, options: ResolverOptions): Path { if (isDirectory(dir)) { result = resolveAsFile(name) || resolveAsDirectory(name); } - if (result) { - // Dereference symlinks to ensure we don't create a separate - // module instance depending on how it was referenced. - result = fs.realpathSync(result); - } return result; }