Open steveluscher opened 1 month ago
Looks like this has been reverted in Node. https://github.com/nodejs/node/pull/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.
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. https://github.com/nodejs/node/issues/55448
Environment