DEV Community

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

Collapse
 
jackmellis profile image
Jack

Oh boy you lost me pretty early on there! As somebody whose job is 99% front end business logic I beg to differ on pretty much everything you say.
I think this might just be a sweeping generalisation based on a handful of basic uecases, or perhaps a clickbaity-piece intended to ruffle feathers 👀

Collapse
 
polterguy profile image
Thomas Hansen

It seems that you are right, implying the exception to verify the rule. 80% of software developers works for companies who's job it is to deliver software as a secondary function. These are administration types of apps, CRM systems, etc. Adding business logic into these apps is madness. I have no idea what you're working with, but I give a use case myself in my OP about Canva, and how it would make sense to have unit tests in such types of applications.

However, for 80% of all software developers world wide it makes ZERO sense to add unit tests in frontend code ...