Skip to content

Commit 075b489

Browse files
authoredAug 22, 2022
fix: ignore EISDIR when resolving symlinks (#13157)
1 parent 3bef02e commit 075b489

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎packages/jest-util/src/tryRealpath.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export default function tryRealpath(path: string): string {
1111
try {
1212
path = realpathSync.native(path);
1313
} catch (error: any) {
14-
if (error.code !== 'ENOENT') {
14+
if (error.code !== 'ENOENT' && error.code !== 'EISDIR') {
1515
throw error;
1616
}
1717
}

0 commit comments

Comments
 (0)
Please sign in to comment.