Abusing Jest snapshot tests: some nice use-cases

added by JavaScript Kicks
8/13/2018 7:38:29 AM

308 Views

There's some nice use-cases for snapshot tests outside of the well-travelled React/Vue UI component ones. In other words, although React and Vue testing with snapshots is pretty well documented, that's not the only place they're useful. As a rule of thumb, you could replace a lot of unit tests that assert on with specific data with snapshot tests.


0 comments