DEV Community

Discussion on: Unit testing frontend code is (probably) useless

Collapse
 
polterguy profile image
Thomas Hansen

TL;DR correct testing depends on context, if you forcibly have to test logic in UI for whatever reason it is, you should go with unit testing, otherwise, you should apply other testing techniques and not to mix them up with what "unit testing" is actually intended for

Thank you!

For the record, there are edge cases where unit testing frontend code makes sense. I even give an example myself.