Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: testing? #1

Open
james2doyle opened this issue May 14, 2021 · 1 comment · May be fixed by #2
Open

Feature: testing? #1

james2doyle opened this issue May 14, 2021 · 1 comment · May be fixed by #2

Comments

@james2doyle
Copy link

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

@themarcba
Copy link
Owner

themarcba commented May 14, 2021 via email

@james2doyle james2doyle linked a pull request May 14, 2021 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants