Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
b2plane6380228dExactly. Fully agreed. I have still never seen any fucking nextjs developer write 1 single fucking unit or integration test. In fact they are so fucking stupid they explicitly say testing is a waste of time and not important. They think unit testing is the old way of writing software
-
lorentz15122228dI find React fairly testable as far as frontend goes. Flushing the task queue is clumsy but other than that it's fine IMO.
-
Tounai1335228d@b2plane 90% of the time, it tests the test itself. Testing in React is broken and NextJS makes it even more broken. I 100% prefer end to end tests, which are quite broken as well, but have the benefit of actually testing something meaningful.
-
Tounai1335228d@lorentz As long as you test small simple components it’s fine, but when you try to deal with routing, or more complex feature of React it becomes unbelievably complex. And the worst part is not writing the test, but modifying it when you modify a component, to the point that I generally prefer making another component rather than editing the one in place.
-
fullstackcircus9915228dtesting components is an integration test
unit tests on functions work fine?
Fuck react, fuck nextJS and fuck frontend unit testing, it doesn’t work and will never work.
rant