Skip to content
Testing·Intermediate·Conceptual·1 min read

How large should a snapshot be?

Short interview answer

Small and focused — a single component's output or a specific region — so a diff is readable and a reviewer can actually judge whether the change is intended. A snapshot of an entire page's DOM produces diffs nobody reviews properly.

Key takeaway

Explain the underlying mental model clearly, then support it with a concrete example and its trade-offs.

← Back to Visual and snapshot testing

Related questions