Testing & QA

Snapshot Testing

/ˈsnæpʃɒt ˈtestɪŋ/

Definition

A test that compares the current output (HTML, JSON, image) against a stored snapshot, failing if they differ.

Example in context

"Jest snapshot test: render the Button component, save the HTML. Future changes that alter the output fail the test."

Related terms

Practice this term

Master Snapshot Testing in context by working through exercises in the Testing & QA module. You'll see the term used in real engineering scenarios with multiple-choice, fill-in-the-blank, and matching drills.