Refactoring legacy code with Jest snapshots

03-26-2019 — 1 min read

In this article I look at some of the downsides to snapshot testing and why it generally isn't the best approach for your long-term testing strategy. I then share an appropriate use-case for snapshot testing to help when refactoring legacy code.