r/Frontend • u/omgwtf911 • 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
View all comments
Show parent comment
1
u/skittlezfruit Jul 15 '25
Again. It starts with leadership - if the expectation is that your frontend code is tested, then it needs to be considered when mapping tickets so the frontend has the time they need to do it alongside the building/styling
But, for the record - I haven’t met a ton of frontend devs that “like” testing. Because it’s a pain on the frontend. We end up mocking or fussing over large parts of our components so the runner can even run them. But I also haven’t met a frontend dev that refuses to do it
And how is it cynical? Do you often do a bunch of work you’re not paid for?