I've really taken to property-based testing recently and this quote just really helped me crystallise why property testing is worth the extra effort over example-based unit testing: "Instead of thinking about whether my code worked I began to think about whether it’s correct." https://jrsinclair.com/articles/2021/how-not-to-write-property-tests-in-javascript