-
-
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
v25.1.0 text reporter generates to much white space #9441
Comments
This is a change in EDIT: or at least I think so - could you include screenshots of before and after? |
No, this is Jest's fault. We try to measure the width of Will try to come up with a better solution. It's somewhat weird |
@michael-smith-tanium what do you get if you run |
Sure. Would you still like before and after screenshots?
|
Yes please 🙂 Super odd it says 202 but is not limited to it... What happens if you remove the |
Removing that line does default things to 80. The file names and uncovered line #s columns are truncated but it works. If it helps, for some reason |
node -p process.stdout.columns is reporting 202, but hardcoding that in the report still wraps. I stopped wrapping at 160. Seeing everything not wrapped I noticed that the summary text is printing in the middle of the text report. That maybe a separate issue. |
Hmm, interesting... So it goes beyond its column width even though we try to max it at |
Just to be clear in case I am causing confusion. When I inspect process.stdout.columns in The question is why my process.stdout.columns is undefined. When I run that same command with |
Oh, I read "but hardcoding that in the report still wraps" and thought it was still broken? |
istanbul-reports defaults to |
Is there something I can provide here that could help or do you have what you need for now? |
Sorry, haven't had the time to look into this. I'm confused about this statement:
If you hard code |
I am experiencing the same problem but only when running on gitlab CI, the |
I bumped to v25.5.4 and am not seeing the issue as prominently as in 25.1.0. I'm going to close this. |
Updated to version 26.0.1 the problem still persists (tested on gitlab CI, image: node:latest) |
Feel free to reopen if you'd like @gregid. You can respond to SimenB's last question that I didn't answer. |
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. |
For anyone coming back to this issue later - in #9442 I tested removing the width, and a bunch of file names now get abbreviated, which imo is a worse experience. |
🐛 Bug Report
Testing the output from the text reporter between v24.9.0 and v25.1.0 I noticed two changes in behavior that make the report harder to read. It maybe an istanbul issue, but I wanted to start here.
...
.To Reproduce
Steps to reproduce the behavior:
Expected behavior
The number of lines to wrap for each file in the text report should be calculated for each file and not use the largest line wrap count found.
envinfo
System: OS: macOS 10.15.2 CPU: (8) x64 Intel(R) Core(TM) i7-4980HQ CPU @ 2.80GHz Memory: 943.94 MB / 16.00 GB Shell: 5.7.1 - /bin/zsh Binaries: Node: 12.14.1 - /usr/local/bin/node Yarn: 1.19.1 - /usr/local/bin/yarn npm: 6.13.4 - /usr/local/bin/npm Managers: Homebrew: 2.2.1 - /usr/local/bin/brew pip3: 9.0.1 - ~/.pyenv/shims/pip3 RubyGems: 3.0.3 - /usr/bin/gem Utilities: Make: 3.81 - /usr/bin/make GCC: 4.2.1 - /usr/bin/gcc Git: 2.19.1 - /usr/local/bin/git Clang: 1100.0.33.17 - /usr/bin/clang Subversion: 1.10.4 - /usr/bin/svn Servers: Apache: 2.4.41 - /usr/sbin/apachectl Virtualization: VirtualBox: 6.0.14 - /usr/local/bin/vboxmanage IDEs: Nano: 2.0.6 - /usr/bin/nano Vim: 8.1 - /usr/bin/vim Xcode: /undefined - /usr/bin/xcodebuild Languages: Bash: 3.2.57 - /bin/bash Go: 1.13.6 - /usr/local/go/bin/go Java: 10.0.1 - /usr/bin/javac Perl: 5.18.4 - /usr/bin/perl PHP: 7.3.9 - /usr/bin/php Python: 2.7.15 - /Users/michael.smith/.pyenv/shims/python Python3: 3.5.7 - /Users/michael.smith/.pyenv/shims/python3 Ruby: 2.6.3 - /usr/bin/ruby Databases: SQLite: 3.28.0 - /usr/bin/sqlite3 Browsers: Chrome: 79.0.3945.130 Firefox: 72.0.1 Safari: 13.0.4
The text was updated successfully, but these errors were encountered: