Snapshot tests suck. That’s a test that stores the dom (or I guess any json serializable thing) and when you run the test again, compares what you have now to what it has saved.
No one is going to carefully examine a 300 line json diff. They’re just going to say “well I updated the file so it makes sense it changed” and slap the update button.
Theoretically you could only feed it very small things, but if that’s the case you could also just assert on what’s important yourself.
Snapshots don’t encode intent. They make everything look just as important as everything else. And then hotshot developers think they have 100% coverage
Snapshot tests suck. That’s a test that stores the dom (or I guess any json serializable thing) and when you run the test again, compares what you have now to what it has saved.
No one is going to carefully examine a 300 line json diff. They’re just going to say “well I updated the file so it makes sense it changed” and slap the update button.
Theoretically you could only feed it very small things, but if that’s the case you could also just assert on what’s important yourself.
Snapshots don’t encode intent. They make everything look just as important as everything else. And then hotshot developers think they have 100% coverage