-
-
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
testPathDirs 0 matches on windows #1551
Comments
Same, it seems to only find my real module files, not the files in my |
Same, only works in v14.1.0 |
Can someone provide a repository that I can install on windows to test this? Seems like 15 works on windows but you have a configuration that isn't quite compatible. |
Here's the repro: https://github.com/ManuelDeLeon/jest-issue-1551 It only has 2 files: package.json
src\some.test.js describe('Test', () => {
it('works', () => {
expect(true).toBe(true);
});
}); With v14:
With v15:
|
The dash in |
From my ticket... BugVersionJest 15.1.0 Current behaviorSince the update to Jest 15, no more tests are found. Steps to reproduce
Expected behaviorThe tests are found. Debug modeHere is the relevant info... "testPathDirs": [
"C:\\idea\\my-project"
] The dash is not escaped. NoteProbably related to this pull request... |
Is it resolved? I'm facing the same problem... |
Thanks for the repros. @Daniel15 is our resident windows expert. We are hoping to have a fix for this sometime tomorrow. Please be patient, it's a bit hard sometimes to keep up. |
I'll try to take a look at this tonight. All the known issues should have been resolved by #1463, I'll need to investigate further and determine what broke. Unfortunately we don't have automated builds on Windows yet. Currently, several of Jest's unit tests are broken on Windows. We're aiming to fix all those issues and enable an AppVeyor build (#1465) to more easily catch Windows-specific regressions in the future. |
Published 15.1.1 with a fix. Sorry for the wait! |
Man, amazing job!!! It's working perfectly now. 1° Thor Thanks for all!!!! |
Thanks. I love you so much that it hurts :) |
I'm still getting this issue on 15.1.1, but there aren't any dashes in my path. There are There are also spaces, and it seems like that might be the cause as when I move the project directory right down to Is this related to the same bug, or should I file a new report? |
Hi @dylanparry! I'd suggest filing a new issue so we can look into it. I think we'll add some integration tests to test scenarios like this. |
Thanks. I'll file a bug now. |
Hi, I am now learning react and using react-scripts wich actually runs jest No tests found |
It seems like there is also a bug with spaces in dir names on windows. See #1639 – we'll fix it in the next Jest release. |
Having the same issue running 21.2.1 |
I am having the same issue running 21.2.1 with windows |
@tedtang77 try v23, there have been couple of windows fixes since v21 |
It works on v23! Thanks very much |
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. |
I just upgraded from jest 14.1.0 to jest 15.0.2 and now no tests are found anymore - the testPathDir never matches anything (I tried different variations). Output is:
No tests found
41 files checked.
testPathDirs: C:\Users\dskgry\app\src - 0 matches
testRegex: tests/.*Test.js - 9 matches
testPathIgnorePatterns: \node_modules\ - 41 matches
Debug file attached.
Thanks in advance
jest_debug.txt
The text was updated successfully, but these errors were encountered: