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
Hey, I wonder how I could unit test my custom input components, which use remix-validated-form hooks, so it will make a sense. Right now I mocked all the stuff, so that tests will be green:
With this approach the benefit of testing is lost as rendered components are pretty bare-bone HTML and doesn't include attributes set with the help of getInputProps.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hey, I wonder how I could unit test my custom input components, which use
remix-validated-form
hooks, so it will make a sense. Right now I mocked all the stuff, so that tests will be green:With this approach the benefit of testing is lost as rendered components are pretty bare-bone HTML and doesn't include attributes set with the help of
getInputProps
.Beta Was this translation helpful? Give feedback.
All reactions