Now, I can’t predict whether the snapshots will remain valuable over the long term. I expect they won’t, but mainly because I’d like to see this library eventually fade away and its responsibilities move into its primary downstream target. But that may take years, it took nearly two years to get to this refactor which will help enable that. I’m betting the snapshots will be equally valuable whenever that goal becomes possible. In the meantime, they’re my best assurance that I can honestly tell people I believe the current work I’m doing is safe and correct.
I don’t think they’re right for every project or every testing scenario in a given project, but knowing when they are a great fit is important too.
But if you use the snapshots as a means of understanding the templating and checking what it alters, people are much happier to examine the diff.
Agreed that VRT is more powerful: Jest was the first place I found this technique, though I've seen it for other things like SQL approvals before.
A few off the top of my head. Many e2e testing tools can capture and compare screenshots but I think to be maximally effective (and minimally frustrating) you want a tool to manage approving, reviewing, etc.