Snapshot tests capture the rendered output of a component and compare it to a stored reference. Any change triggers a diff for review. Best for catching unintended UI changes. Inline snapshots keep expectations in the test file. Property-based snapshots focus on specific attributes rather than entire trees.
The 5-Mode Loop
5 of 5 modes available
Read · See · Animate · Test · Build
Before this, understand: unit testing