Skip to content

Commit c480161

Browse files
committed
Force lipgloss to have no color output for switch_test.go
1 parent 4266013 commit c480161

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

cli/switch_test.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ import (
66
"path/filepath"
77
"testing"
88

9+
"github.com/charmbracelet/lipgloss"
10+
"github.com/muesli/termenv"
911
"github.com/stretchr/testify/assert"
1012
)
1113

@@ -116,6 +118,7 @@ func TestSwitchCommand(t *testing.T) {
116118
}
117119

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

0 commit comments

Comments
 (0)