-
-
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
path sep replacement went wrong on Windows10 #6576
Comments
Is this fixed by #6523? |
We're experiencing the same issue |
@SimenB when will the fix for this be released to npm? Jest was working fine for me on Windows until I deleted my node_modules folder, re-installed, and now I'm having the same issue above (no test files found) |
#6523 will hopefully be released tonight |
@SimenB This issue is still present in 23.3.0. It appears to be caused by specifying
I can publish a test repo if that would help. |
This may be related to a recent |
I was unable to reproduce this bug at 26.6.3 running windows server. Here's my repro: https://github.com/stdavis/repros/tree/main/jest-6576/26.6.3 I believe that this bug may be fixed. |
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 14 days. |
This issue was closed because it has been stalled for 7 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
Windows 10
Jest version 23.1.0
When I run jest in react source code, It always consoles like this
Jest cannot find any test file.
It seems that something went wrong with replacePosixSep function in jest-config\build\normalize.js.
When i change the regex expression to /\\/g, It went well and test file can be matched.
Is there anything to do with path.sep? Because path.sep is '\\' on my computer.
To Reproduce
debug test case of react using vscode.
Expected behavior
test files should be found.
Link to repl or repo
repo
The text was updated successfully, but these errors were encountered: