Closed yogendrakumar96 closed 2 years ago
I'm not sure what you're asking.
If you have a prop (createTicket
) whose value influences which components are rendered, you'd do multiple shallow tests, one for each variation of createTicket
, and assert on what things are rendered in each case.
I'm not sure what you're asking.
If you have a prop (
createTicket
) whose value influences which components are rendered, you'd do multiple shallow tests, one for each variation ofcreateTicket
, and assert on what things are rendered in each case.
I want to test this form rendering based create ticket props. If the create ticket props is there then I want to render the component. How to do this ? can you please tell me ?
It sounds like you’re just asking how to write tests in general - I’d suggest StackOverflow, IRC, or Slack for that, as i can’t offer that service here.
Here I want to test the form if create ticket is there then I should render the form otherwise I want to render the error. How to test it any idea about this ?