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

What's the risk of jest --updateSnapshot becoming a habit?

Short interview answer

The snapshot's whole purpose is to force a human to notice output changed. If updating is reflexive, an actual regression is committed as the new correct baseline and every future run compares against the broken state, so the test stops protecting anything.

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