is it possible to write unit tests to any Golang func which has a reference to any huh elements #534
Replies: 1 comment
-
Hey @ganesh-getweave I'm going to convert this to a discussion (Q&A), but can you please elaborate on what behaviour you're trying to test? Typically for tests with Huh, you can compare the string output of Huh to verify that the expected outcome is displayed properly. You can do this as shown in the You essentially use I hope that helps, if not, if you can provide more context on the behaviour you're trying to test, then I can give you a more concrete example on usage. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
All reactions