Remix.run Logo
torginus 5 days ago

There's a saying that since nobody tests the tests, they must be trivially correct.

That's why they came up with the Arrange-Act-Assert pattern.

My favorite kind of unit test nowadays is when you store known input-output pairs and validate the code on them. It's easy to test corner cases and see that the output works as desired.

01HNNWZ0MV43FF 5 days ago | parent [-]

"Golden snapshot testing"