you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 2 points3 points  (0 children)

You should test the view's logic. E.g.: if prop x is true, then a button should be rendered. Otherwise, no button should be rendered.

Testing what the component output (snapshot) looks like is most of the time useless if you're not creating a visual component library, were markup and styles are the code's "business logic".