jest-resolve throws on network drives

Created on 9 Apr 2019  路  10Comments  路  Source: facebook/jest

馃挜 Regression Report

Jest throws error while resolving cwd
>> Error: EISDIR: illegal operation on a directory, realpath 'G:\Build'

Last working version

23.6.0
Worked up to version:
23.6.0
Stopped working in version:
24.7.1 (or earlier in 24)

To Reproduce

Steps to reproduce the behavior:
please see detailed description in #6880

Expected behavior

It should not throw

Regression Windows

Most helpful comment

They opened up a PR now, I'll try to land and release it tomorrow

All 10 comments

Since it's a Windows issue, and none of maintainers use it daily, we'd appreciate your help on that :)

Sure, I'll create a pull request =)

@aliaksandr-yermalayeu I'd prefer to make realpath-native not throw in this case, mind sending a PR to https://github.com/SimenB/realpath-native? It's supposed to return its input if anything fails.

Is this https://github.com/SimenB/realpath-native/issues/35 (which has an open PR)?

@SimenB,
While making the PR, I've found nearly ten cases of realpath usage in different jest dependencies. It seems really strange to me that half of them is wrapped with try-catch, and another half isn't.

Ideally none in Jest should be wrapped. At least as long as the fallback is using whatever they passed in as-is

ok, I'll take a look

@SimenB,
I tried https://github.com/rvaidya/realpath-native/tree/feature/windowsRamdiskTry2 and it works for me. If you are ok with @rvaidya changes, I may create a PR from his repo.

They opened up a PR now, I'll try to land and release it tomorrow

no one to fix the only bug?oh, my god!

Hopefully fixed (although not released). Please check Jest 26 when we release it. If it's still not fixed, we might need to catch some more

Was this page helpful?
0 / 5 - 0 ratings