Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions cmd/formatter/shortcut_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,11 @@ import (
)

func TestRunHandlesKeysUntilContextIsDone(t *testing.T) {
// the detach key clears the navigation menu with escape sequences written to
// os.Stdout, which would corrupt the `go test -v` output parsed by gotestsum
disableAnsi = true
t.Cleanup(func() { disableAnsi = false })

detached := make(chan struct{})
keys := make(chan keyboard.KeyEvent, 1)
lk := NewKeyboardManager(false, false, make(chan os.Signal, 1))
Expand Down
Loading