Skip to content
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

Fixes #66 by forcing lipgloss to have no color output #67

Merged
merged 1 commit into from
Jun 23, 2024

Conversation

Tyl13
Copy link
Contributor

@Tyl13 Tyl13 commented Jun 2, 2024

This imports both lipgloss and termenv, and then uses SetColorProfile() to use termenv.Ascii which has no-color. I placed this within the setupConfig so it applies to all tests that end up calling the setupConfig(). It could also be moved to directly within TestSwitchCommand(). I'm not sure which you would prefer.

This fixes Issue #66.

@chicoxyzzy chicoxyzzy added the tests test coverage label Jun 6, 2024
@chicoxyzzy chicoxyzzy requested a review from chriso June 6, 2024 10:24
Copy link
Contributor

@chicoxyzzy chicoxyzzy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@chriso pls take a look too

@chicoxyzzy
Copy link
Contributor

chicoxyzzy commented Jun 19, 2024

@Tyl13 may I ask you to rebase the branch on main? 🙏

@chicoxyzzy chicoxyzzy linked an issue Jun 19, 2024 that may be closed by this pull request
@Tyl13
Copy link
Contributor Author

Tyl13 commented Jun 21, 2024

Yeah @chicoxyzzy, I will rebase it either today or tomorrow.

@Tyl13
Copy link
Contributor Author

Tyl13 commented Jun 21, 2024

@chicoxyzzy rebased. Just needs retested, but tests passed locally on my machine.

@chicoxyzzy chicoxyzzy merged commit 1022c64 into dispatchrun:main Jun 23, 2024
3 checks passed
@chicoxyzzy
Copy link
Contributor

Thank you @Tyl13!

@Tyl13 Tyl13 deleted the issue-66 branch June 24, 2024 04:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tests test coverage
Projects
None yet
Development

Successfully merging this pull request may close these issues.

LipGloss styling stays applied while running tests in a TUI
2 participants