You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The template provided here makes testing look a lot easier than I was expecting. It's still not easy to embed colors in the tests while keeping them human-readable but that's a tooling issue.
With a little bit of factoring the UI can be turned into a pure function from UIState -> terminal buffer, or for more thorough testing it's probably preferable to factor into a pure function from a sequence of UIMessage -> terminal buffer. It should then be easy to write nice readable tests which turn some state (e.g. a block w no txns is selected) into expected terminal buffers.
Currently the entire screen is rendered every frame, though a casual reading of this makes it seem that moving to partial redraws won't require changing this test framework.
what would it mean to test any of this? e.g. what should happen when the provider gives us an error?
The text was updated successfully, but these errors were encountered: