How to mock a child component that implements Validator #11953
Unanswered
Blackbaud-JasonBodnar
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have a component that implements CVA and Validator. A parent component emits based on the validity of the child component. I want to test that the parent component is emitting correctly based on the child validity.
I have:
and I can access the mock with:
But how do I define the behavior of the mock?
Beta Was this translation helpful? Give feedback.
All reactions