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
Nice template! Thanks for sharing. It would be cool to have snapshot testing support out-of-the-box.
Lots of people tend to use unit or end-to-end tests but for components, especially pages and layouts, I find snapshots much much better as they test the entire output of the component. So moving/changing a class, adding/removing attributes, or changing content, can be captured in a single line. Combine that with before and after snapshots for prop and data changes you can get a ton of coverage on your stuff.
What do you think? I can probably submit a PR for this if you're interested
The text was updated successfully, but these errors were encountered:
On Fri, May 14 2021 at 7:17 PM, James Doyle < ***@***.*** > wrote:
Nice template! Thanks for sharing. It would be cool to have snapshot
testing support out-of-the-box.
Lots of people tend to use unit or end-to-end tests but for components,
especially pages and layouts, I find snapshots much much better as they
test the entire output of the component. So moving/changing a class,
adding/removing attributes, or changing content, can be captured in a
single line. Combine that with before and after snapshots for prop and
data changes you can get a ton of coverage on your stuff.
What do you think? I can probably submit a PR for this if you're
interested
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub (
#1 ) , or unsubscribe (
https://github.com/notifications/unsubscribe-auth/AALAYMYO4SR2YFTXZTH3JE3TNVLI5ANCNFSM444ZJBQA
).
Nice template! Thanks for sharing. It would be cool to have snapshot testing support out-of-the-box.
Lots of people tend to use unit or end-to-end tests but for components, especially pages and layouts, I find snapshots much much better as they test the entire output of the component. So moving/changing a class, adding/removing attributes, or changing content, can be captured in a single line. Combine that with before and after snapshots for prop and data changes you can get a ton of coverage on your stuff.
What do you think? I can probably submit a PR for this if you're interested
The text was updated successfully, but these errors were encountered: