-
-
Notifications
You must be signed in to change notification settings - Fork 6.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
path.resolve is broken with different copy of graceful-fs #9923
Comments
Thanks for the detailed bug report! Jest has depended on I don't really have a solution I'm afraid. As an aside, Jest has never really supported |
Thanks for the thoughtful response @SimenB. TIL about We'll hack around it with nasty dependency management trickery, and fortunately Jest is only a dev dependency and not a prod dependency, but this seems like a sharp edge you might want to do something about. As an aside, if you really don't support I'd rather would be told immediately while trying to write my test suite that what I'm doing cannot work, rather than having to now go back and make sure I don't accidentally |
Yeah, makes sense. We already override |
This issue is stale because it has been open for 1 year with no activity. Remove stale label or comment or this will be closed in 30 days. |
This issue was closed because it has been stalled for 30 days with no activity. Please open a new issue if the issue is still relevant, linking to this one. |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
馃悰 Bug Report
An issue has been introduced by Jest 25.5.0 depending on graceful-fs. 25.5.1 does not fix it.
graceful-fs
in the dependency tree (can happen if you depend on a dependency which has an older version of graceful-fs than jest itself now does)process.chdir()
path.resolve()
process.cwd()
thatpath.resolve()
uses, uses a different copy of graceful-fs, which has a different copy of its cached value forcwd
, and sopath.resolve
calculates the path relative to the wrong directory.To Reproduce
Check this out, run:
Expected behavior
Link to repl or repo (highly encouraged)
https://gist.github.com/rix0rrr/c62608a504987fc63d95b789a78a529a
envinfo
The text was updated successfully, but these errors were encountered: