test: stabilize view model golden output (#1752)

Co-authored-by: Drew Smirnoff <drew@charm.land>
This commit is contained in:
Jack Walker 2026-11-12 13:22:51 +00:00 committed by GitHub
parent bd09ae6834
commit b3b8f982fe
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -138,6 +138,9 @@ func TestViewModel(t *testing.T) {
m := &testViewModel{testModel: &testModel{}}
p := NewProgram(m,
// Keep the renderer ticker from introducing intermediate frames into
// this golden-output test.
WithFPS(1),
// Set the initial window size for the program.
WithWindowSize(80, 24),
// Use ANSI256 to increase test coverage.