🌲 Pauls.Garden
🚧 This site is a work in progress!I still need to add a search bar so use Ctrl/⌘ F for now
Snapshot testing is never worth doing
2024-11-16codetestingjs
Yes, I know there is a way to do them right...they are good for detecting unintended side effects...they are for mature applications...but I just don't think they're worth it.
- What are you even testing? Tests should have names describing what you're testing, snapshot tests don't.
- They are flakey by design. Flakey tests are bad.
- Everyone ignores them anyways so none of their benefits matter.
- They waste everyone's time, over and over and over again.