We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fd102a0 commit ddd0661Copy full SHA for ddd0661
packages/jest-resolve/src/index.js
@@ -51,7 +51,8 @@ export type ResolveModuleConfig = {|
51
const NATIVE_PLATFORM = 'native';
52
53
// We might be inside a symlink.
54
-const resolvedCwd = fs.realpathSync(process.cwd());
+const cwd = process.cwd();
55
+const resolvedCwd = fs.realpathSync(cwd) || cwd;
56
const nodePaths = process.env.NODE_PATH
57
? process.env.NODE_PATH
58
.split(path.delimiter)
0 commit comments