Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

With the shift of logic from the backend to the frontend (with the rise of clientside frameworks) it feels one thing that simply hasn’t matched the pace of transition is tooling for frontend testing.

It’s a tricky problem. We just started using Percy/Cypress at our company.



It all still makes you pull you pull your hair out. I’ve tried Selenium for E2E and RTL and others for integration and unit testing. As soon as you want to do anything remotely complex like testing an auth flow or a chained change of state you start running into issues. Mocking can be truly infernal. I tried to mock Firebase and I found myself thinking way too much about the internals of the Firebase SDK and their relationship with my own application to the point I didn’t know what I was testing anymore.

Compare this to testing the back-end where I can crank pages of tests like I’m the Beethoven of testing.

I love front-end dev but I cower at the thought of testing anything that’s not a pure data function or a very dumb presentational component.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: