3 ms·
Tests definitely help, and I agree they should cover as much logic as possible. The gap I’ve seen is that tests usually validate expected scenarios, while some
by vortexshadow 9mo ago
Tests definitely help, and I agree they should cover as much logic as possible.
The gap I’ve seen is that tests usually validate expected scenarios,
while some invariants only break after specific sequences of events
or over time — especially with async flows and state that evolves across renders.
In practice, we found tests and runtime checks to be complementary:
tests verify intent,
invariants catch unexpected drift when reality doesn’t match assumptions.