Skip to main content
Testing & QA Bug Hunt Medium +20 XP

Snapshot Outdated

Tests fail after a legitimate UI change.

Testing & QAFind the bug
1// Snapshot tests fail after intentional design update
The bug is on line 1

Select the correct fix

Show answer and explanation

Answer: Run jest --updateSnapshot to update snapshots

When UI changes are intentional, run jest -u or jest --updateSnapshot to regenerate snapshot files to match the new output.

Hint: Snapshots need to be updated after intentional changes.

What this challenge tests

Bug Hunt in Testing & QA: snapshots, jest.

Related challenges