Remix.run Logo
skydhash 7 days ago

My current mental model is a car. If it’s a function or some other things you’re fully confident you captured the domain, add unit tests to capture that. Just like an engine. But the most important is integration tests that couple something like the engine, the ignition system and test that when the user press the start button, the engine start and the dashboard light up.

Unit tests are great for DX but only integration and above tests matter business wise.