You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Passing a folder on a different directory on Windows to the roots configuration option fails as jest-haste-map is trying to resolve all paths relative to the rootDir, but this is not possible on Windows where a relative path from one drive to another will produce an absolute path.
Have a configuration that has a root set to a different drive than the project itself is on
Start jest
Expected behavior
The paths that are on a separate drive should not be resolved relatively to the rootDir, but should be taken as is. We're using a patch that does this and that seems to solve the issue.
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.
Please note this issue tracker is not a help forum. We recommend using StackOverflow or our discord channel for questions.
🐛 Bug Report
Passing a folder on a different directory on Windows to the
roots
configuration option fails as jest-haste-map is trying to resolve all paths relative to the rootDir, but this is not possible on Windows where a relative path from one drive to another will produce an absolute path.This bug was introduced in #7020
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The paths that are on a separate drive should not be resolved relatively to the rootDir, but should be taken as is. We're using a patch that does this and that seems to solve the issue.
Run
npx envinfo --preset jest
Paste the results here:
The text was updated successfully, but these errors were encountered: