-
-
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
Unable to find tests when path includes parentheses #2381
Comments
yeah this should be made to work on windows. The integration tests are disabled on windows mostly because nobody had time to go through and fix/enable the tests. cc @Daniel15 do you have any time to help? |
Related: #3121 |
Looks like this isn't the first time it's broken: #1081 |
I found that you can work around this restriction if you are on a Windows system that supports short names for paths by using the short name, which shouldn't contain the parenthesis, for the rootDir config property. |
I think this is fine in the current alpha, |
Just tested with jest@test (
|
That sucks. It would be great if you could troubleshoot it and send a PR and test to fix it as I don't have access to any Windows machines. |
I'd be happy to, but I'm not sure if I'll have the time in the near future. I spent an hour or so digging through to see if it was a quick fix but I couldn't track down the issue, and I can't spend any more time than that from work. Sorry! |
For me |
why do you run |
@sean-killeen That seems like a separate issue, you may want to create a new issue with the full template filled out for better help. |
@SimenB @ansballard Thanks for your help. So I got this resolved by using the global installation of Jest rather than referencing it through my node_modules. |
@sean-killeen |
Same issue when trying to run the https://github.com/nrwl/nx e2e on Windows 7 (jest version 20.0.4)
FYI : I use git-bash |
Any idea when this gets into production? Using v22.4.3 and getting issues when trying to us CI with Jenkins. |
We're gearing up for Jest 23, so some ways off. You can install |
Still it doesn't work with WIN : 10 jest : 23.0.0-alpha.6r |
:( |
@bharathvaj1995 mind setting up a reproduction? |
My workaround for a personal project #7842 |
Also unable to find tests on Mac when asterisk (*) in path: "No tests found, exiting with code 1" |
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 30 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
When running npm test on a project which contains parentheses in the path, no tests are found.
Example repo here: https://github.com/benfogel/jest-18-parenthesis-bug
What is the expected behavior?
A test should be found and run.
Please provide your exact Jest configuration and mention your Jest, node, yarn/npm version and operating system.
Jest 18
Windows 7
NPM 3.10.8
The text was updated successfully, but these errors were encountered: