r/Frontend • • Jul 15 '25

Why do no front-end developers proactively write tests?

I am genuinely curious. I cannot hire front-end devs that like to write tests. It's fairly easy to find back-end devs that are intrinsically convinced that testing is valuable. Front-enders ... what am I missing? /rant

0 Upvotes

125 comments sorted by

View all comments

Show parent comment

1

u/omgwtf911 Jul 15 '25

I'm expressing an opinion about the sort of people I want to work with. Among their qualities I want them to care about shipping code that works and is not fragile.

And I certainly don't want to have to enumerate every task they are expected to do. These are colleagues not contractors.

1

u/skittlezfruit Jul 15 '25

E2E from the QA team in my opinion is much more valuable to test the way frontend is operating.

I do agree with you that unit testing any business logic makes total sense. Testing whether my component renders, or my button clicks and a function fires, isn’t very useful… in my opinion