3 ms·
I get that. Testing components in particular is something I've rarely found to be worth it as well. But often I find myself writing logic in the frontend, say
by n2d4 4y ago
I get that. Testing components in particular is something I've rarely found to be worth it as well.
But often I find myself writing logic in the frontend, say for processing data from the API. That's where I want to create a file and write a unit test because it would actually be easier. Sadly for a small project the effort of configuring and maintaining updates of an external test framework on-top of Next makes no sense.
- klysm 4y agoYeah sure if there are some pure functions involved then by all means unit test.