--

Thanks for your thoughts, David!

Regarding testing, I’m not sure we’re on the same page. At least in React, I don’t see much value in writing unit tests for components, such as testing if clicking a button triggers a specific action.

I believe it’s more effective to focus on testing complex utility functions, like transforming objects into an API request.

Additionally, having some end-to-end (E2E) tests in place (e.g., with Playwright) to mimic how users interact with the application is crucial.

Of course, this approach differs when it comes to the backend, where higher test coverage is generally better.

--

--

Lorenz Hofmann-Wellenhof
Lorenz Hofmann-Wellenhof

Written by Lorenz Hofmann-Wellenhof

👨‍💻 Software Eng @ AI unicorn 🇺🇸 Sharing my lessons for non-stop growth in AI, coding, & life optimizations. I build things & put them on the Internet.

Responses (1)