-
-
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 v26 is failing when run without cli options #10014
Comments
Cannot repro. Run |
I don't have jest globally installed. It's just installed locally for this project. But it's interesting that it's only occuring in my machine. will look into it to figure out if I'm missing something. |
Maybe you have an alias set up? |
No i don't have any alias matching to jest. The thing is if i replace 26.0.1 with 25.5.4, |
I don't have access to a windows machine, so I can't test there. We do run many tests on CI with Windows though, so I don't think it's as simple as that |
I tested this on another windows machine and it's working there. So the problem must be about my environment. If I find the reason, I'll post it here. Thank you for your time. |
I had confirmed the problem was about my environment. But couldn't find the reason of it. Now my windows is reinstalled and I no longer see this issue. Previously I had jest globally installed then removed. Maybe that was causing the problem. Or maybe it was something about the caching of npm. |
I've experienced same. Workaround for Win10: Settings > Region & Language > Adminstrative language settings > Formats. I guess proper solution would be |
Just created an issue in |
I changed my language and it worked for me. sad but true. |
Adding the locale environment to test script works. You can update your test command in package.json
|
In /*package.json*/
"scripts": {
"test": "jest --runInBand"
} But expect a longer time to complete as it runs tests one by one |
seems like we should pass |
Let me do it. It is really first issue, give me some time :) |
Go for it @rasgele! π |
Thanks @rasgele you have solved my problem as well just by changing some region settings. Δ°yi gΓΌnler! :) |
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
When running the jest without cli options, it's failing.
receiving following message in console
Problem is with version 26.0.1 (and 26.0.0). Same scenario is working with version 25.5.4.
To Reproduce
Followed the docs of jest. https://jestjs.io/docs/en/getting-started
Expected behavior
When no option is set, it is expected to run all tests.
Link to repl or repo (highly encouraged)
https://github.com/basarbk/jest-without-params-fail
envinfo
System:
OS: Windows 10 10.0.10240
CPU: (4) x64 Intel(R) Core(TM) i5-6300U CPU @ 2.40GHz
Binaries:
Node: 12.13.1 - C:\Program Files\nodejs\node.EXE
npm: 6.13.1 - C:\Program Files\nodejs\npm.CMD
npmPackages:
jest: ^26.0.1 => 26.0.1
The text was updated successfully, but these errors were encountered: