Skip to content

Commit

Permalink
Force lipgloss to have no color output for switch_test.go
Browse files Browse the repository at this point in the history
  • Loading branch information
Tyl13 committed Jun 21, 2024
1 parent 2db45fe commit fae6e1b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cli/switch_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ import (
"path/filepath"
"testing"

"github.com/charmbracelet/lipgloss"
"github.com/muesli/termenv"
"github.com/stretchr/testify/assert"
)

Expand Down Expand Up @@ -116,6 +118,7 @@ func TestSwitchCommand(t *testing.T) {
}

func setupConfig(t *testing.T, tc testCase) string {
lipgloss.SetColorProfile(termenv.Ascii)
tempDir := t.TempDir() // unique temp dir for each test and cleaned up after test finishes
configPath := filepath.Join(tempDir, "config.yaml")
if tc.configExists {
Expand Down

0 comments on commit fae6e1b

Please sign in to comment.