Skip to content

Mini reporter goes mad when the terminal width is smaller than the test title #629

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

Closed
sindresorhus opened this issue Mar 10, 2016 · 2 comments
Labels
bug current functionality does not work as desired help wanted

Comments

@sindresorhus
Copy link
Member

To reproduce, make your terminal width narrow and try running the got tests.

untitled12

@sindresorhus sindresorhus added bug current functionality does not work as desired help wanted labels Mar 10, 2016
@jamestalmage
Copy link
Contributor

What is the best way to fix?

Truncate the title or try to account for the wrapping when deleting?

The first is probably easier than the second, but both should be doable.

@sindresorhus
Copy link
Member Author

I was going to say wrapping, but it looks very ugly, so let's go with truncation. Can use character to indicate it's truncated. I made a module for this: https://github.com/sindresorhus/cli-truncate

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug current functionality does not work as desired help wanted
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants