Skip to content

Commit

Permalink
fix: ignore EISDIR when resolving symlinks (#13157)
Browse files Browse the repository at this point in the history
  • Loading branch information
KrishnaPG committed Aug 22, 2022
1 parent 3bef02e commit 075b489
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/jest-util/src/tryRealpath.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export default function tryRealpath(path: string): string {
try {
path = realpathSync.native(path);
} catch (error: any) {
if (error.code !== 'ENOENT') {
if (error.code !== 'ENOENT' && error.code !== 'EISDIR') {
throw error;
}
}
Expand Down

0 comments on commit 075b489

Please sign in to comment.