11 ms·
> In actual practice, about 99% of unit tests I see amount to "verifying that our code does what our code does" That’s my experience too, especially for things
by tshaddox 3y ago
> In actual practice, about 99% of unit tests I see amount to "verifying that our code does what our code does"
That’s my experience too, especially for things like React components. I see a lot of unit tests that literally have almost the exact same code as the function they’re testing.