-
Notifications
You must be signed in to change notification settings - Fork 112
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
Add more tests #92
Comments
@lucasbento Would you mind if I give it a try? |
@KevinHu2014: go for it :) We already have react-testing-library setup so I would recommend continuing with it and if you need any help just give me a shout 🙂 |
Just finished reading the docs of |
@KevinHu2014 feel free to contribute! |
@jmporchet Thanks for the PR! ❤️ |
I just saw all the snapshot testing. Good work, and thanks! I do have one question, and please don't take it the wrong way, it's just me being ignorant, so any info would be helpful for me. Why do we need snapshots? 😬 I mean what do they give us besides knowing that the UI will stay the same? If we change the UI, we update the snapshots, so it's extra work. If we don't change the UI, then they stay the same, same as if we didn't have them. What is the point of them? Thank you ahead of time, if you decide to help me understand :D |
It's better to have 10 snapshot tests than no tests at all. Basically, if you have a function that return X and you want to refactor it, you just want it to perform in a different way but keep giving the same result. The snapshots are only to guarantee that the output your code is providing won't change. |
But specifically for UI, how is that useful? It means that every single time we make any UI change, we need to update the snapshots. And any change we do in the logic and the rest of the functions, will not matter for UI. So what do the snapshots give us? 😬 |
@pvinis this is a very valid concern. I agree that snapshot testing might not be necessary or even advisable for all components actually. By the way I would be interested in your thoughts for good test cases! |
Just writing it here, I would like to add some tests for the version filtering.I would like to have lists of releases, and from that derive if they should be shown or not (for rcs for example), if we should display the popover for |
Feature Request
Right now we only have these sad little tests and we definitely need to add more.
The text was updated successfully, but these errors were encountered: