-
-
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
Wrong file name displayed in the terminal #6873
Comments
Need a repro |
@thymikee I'm using https://github.com/xfumihiro/jest-puppeteer-example which is from the official jest doc |
This is a problem with a reporter – the second |
@thymikee is this reporter actually part of jest? |
Yes, it's a default reporter. It sometimes breaks like this when there's some stdout/stderr output coming from your tests or code. I believe this should be fixed by #6871 |
Ok thanks for the quick replies, hopefully this PR fixes it ! 💯 |
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
When a test fails, it will show the file name of the test with some wrong extension, I don't know if the error is actually from the filename value OR maybe some terminal visual artefacts.
As you can see, there is the correct file
toto.test.js
but it's also showingtoto.test.jss
and sometimes it's showingtoto.test.jsjs
.toto.test.jss
doesn't exist and the correct filetoto.test.js
is just an empty file.To Reproduce
Setup a good test and a wrong test (in 2 different files), then run the
jest
.Expected behavior
The filename should be displayed correctly.
Run
npx envinfo --preset jest
System: OS: Linux 4.15 Ubuntu 18.04.1 LTS (Bionic Beaver) CPU: x64 Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz Binaries: Node: 10.9.0 - /usr/bin/node Yarn: 1.9.4 - /usr/bin/yarn npm: 6.2.0 - /usr/bin/npm npmPackages: jest: ^23.5.0 => 23.5.0
The text was updated successfully, but these errors were encountered: