DEV Community

Discussion on: Jest Snapshot Testing for React Components is useless? Is it slowly dying? 🧐🤔😐

destro_mas profile image
Shahjada Talukdar Author

The example is actually just a placeholder. But let's assume it as a bigger component and then the snapshot will be very big and if we change the component and generate snapshot again, the diff will be very big too.

Also, Doing visual snapshot testing can be a good thing and can also get potential UI bugs. And tools like Percy can be a good replacement.