Remix.run Logo
ForHackernews 6 hours ago

Unit tests vs acceptance tests. You shouldn't be afraid to throw away unit tests if the implementation changes, and acceptance tests should verify behavior at API boundaries, ignoring implementation details.

hinkley 3 hours ago | parent [-]

BDD helps with this as it can allow you to get the setup out of the tests making it even cheaper for someone to yeet a defunct test.