Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
EISDIR
1 parent 3bef02e commit 075b489Copy full SHA for 075b489
packages/jest-util/src/tryRealpath.ts
@@ -11,7 +11,7 @@ export default function tryRealpath(path: string): string {
11
try {
12
path = realpathSync.native(path);
13
} catch (error: any) {
14
- if (error.code !== 'ENOENT') {
+ if (error.code !== 'ENOENT' && error.code !== 'EISDIR') {
15
throw error;
16
}
17
0 commit comments