-
-
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
Jest 26.2.1 regression: “No tests found” on Windows #10339
Comments
Strange thing that even The issue occured right after 26.2 was released and CI still uses 26.1, and of course all PRs by The issue however only happens to |
Seem like PostCSS and |
This affects me as well. I use Windows with Node v12.18.3 and Jest v26.2.1. Ts-Jest is at 26.1.4. |
I don't have access to a windows machine, unfortunately, so hard for me to debug this... Our own Windows CI passes on both GH Actions and Azure Pipelines, so I wonder if this is some weird config thing? Does it just happen with ts-jest? |
@SimenB yeap, we have TypeScript tests too |
I tried to run The only clue I have is CI didn't fail with 26.1 until 26.2 released |
I'm guessing this is somehow related to #10308 - only windows change I can think of (although it's weird that our own tests pass...). Does anyone here use Windows on their own machine, or have the possibility to test? If so, try reverting this change in |
I think maybe an alpha version so we can point CI to it ? |
I'd rather avoid it if possible, but not a huge issue if no one here has a Windows machine |
Tests not being detected on WIndows. I use yarn, ts-jest for typescript. Do we have an interim solution for windows? |
Interim solution is to revert the upgrade commit if you have a lockfile. For fresh installs you could try to use |
yes, as soon as you undo the change, it will run on Windows systems again. |
I was able to find the old windows images from modern.ie, and was able to confirm it. I'll try a couple of minutes to fix detection properly, if not I'll re-add the condition 👍 I'm very confused by why our CI passes with the changes... |
Thanks a lot Simen !!, I see our CI is green again |
Thanks, I also had problems with my tests after upgrade to version 26.2.1 but with 26.2.2 everything is working again. Thanks again. |
@SimenB stumbled on this while lazily scrolling through the issues - I dev on Windows (w/ WSL for CLI) so feel free to ping me on future Windows issues if you'd like :) |
Thanks @G-Rath! Will do 🙂 |
Hi, I still have this issue with 26.2.2 or later on one of my windows machines (on others it does work). On the machine where it does not work, I can make it work by manually changing |
Hi there, I'm facing the exact same error aforementioned. on my local machine. I'm using CRA and the following packages: System: All tests are ran Mac os, docker container and CI ( with ubuntu image). |
Same issue here |
It's odd that no one pays attention our demand. It's been 3 months since my post. |
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
In PostCSS we found a problem with the new Jest release. After updating Jest to 26.2.1, Jest stopped to see tests on Windows in our Travis CI.
To Reproduce
Seems like just call
npx jest
on Windows. Here is a config to call it on Travis CIExpected behavior
https://travis-ci.org/github/postcss/postcss/jobs/713424784
Link to repl or repo (highly encouraged)
https://github.com/postcss/postcss/archive/8722140c5c55530b0c4091190f1557b42fd18c87.zip
envinfo
The text was updated successfully, but these errors were encountered: