-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: Node 23 normalizes paths in a way that results in Jest finding no tests #15348
Comments
Looks like this has been reverted in Node. nodejs/node#55414 |
This issue is stale because it has been open 30 days 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. |
1 similar comment
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. |
Version
main branch
Steps to reproduce
Expected behavior
Tests pass.
Actual behavior
includePaths
ends up having'../jest-changed-files-test-dir'
under Node 23 instead of'.'
under Node <=22. This causes git to freak out because the directory is ‘outside the repository.’Additional context
This appears to be because of a bug in Node 23, but that's no reason not to try to strip the trailing slash in Jest, defensively. nodejs/node#55448
Environment
The text was updated successfully, but these errors were encountered: