I LOVED
SNAPSHOTS
IN 2016
A Decade Later,
Let's Revisit
2025, 30Oct = 24Dec
ROBIN POKORNY
TONIGHT
01
02
03
WHAT IS
SNAPSHOT
TESTING
WHAT WENT WRONG
WHAT
NOW?
WHAT IS
SNAPSHOT
TESTING
01
WHAT�WENT WRONG
02
‘The most common�drawback is�the fragility�of snapshot tests’
—STIP PAPER
Tests don't encode what's important
LACK OF DEVELOPER INTENTION
Developers don't scrutinize them
GENERATED FILE PROBLEM
Need manual verification
LARGE SNAPSHOTS
Tests fail when code is actually fine
HIGH FALSE NEGATIVES
WHAT
NOW?
03
USE
AVOID
TAKEAWAY
SNAPSHOTS PROVIDE VALUE
WHEN USED EFFECTIVELY
me@robinpokorny.com
Let’s connect
IN/IG/YT
WEB
NAME
STATE OF JS
https://survey.devographics.com/survey/state-of-js/2025