fix(e2e): pin TERM/COLORTERM di harness — kemampuan terminal deterministik di runner CI
CI / test (push) Successful in 11s
CI / test (push) Successful in 11s
This commit is contained in:
1 parent
db891398fb
commit
8f7b6c8ab6
1 file changed
+4
-1
+4
-1
@@ -90,7 +90,10 @@ func startTUIEnv(t *testing.T, env ...string) *tui {
|
||||
t.Skip("e2e pty tidak didukung di Windows")
|
||||
}
|
||||
cmd := exec.Command(binPath)
|
||||
if e := envWith(env); len(e) > 0 {
|
||||
// Kunci kapabilitas terminal: tanpa ini, runner CI ber-TERM "dumb"
|
||||
// membuat lipgloss menonaktifkan warna & latar → asersi highlight flaky.
|
||||
base := []string{"TERM=xterm-256color", "COLORTERM=truecolor"}
|
||||
if e := envWith(append(base, env...)); len(e) > 0 {
|
||||
cmd.Env = e
|
||||
}
|
||||
ptmx, err := pty.StartWithSize(cmd, &pty.Winsize{Rows: rows, Cols: cols})
|
||||
|
||||
Reference in new issue
Block a user