Put in order · JavaScript and React course · Module 13: Testing React

Snapshot lifecycle

Arrange the stages of a snapshot's lifecycle in the correct order:

Items to put in order

  • Jest creates a .snap file with the saved result
  • First test run
  • Next test run
  • Test passes (match) or fails (mismatch)
  • Jest compares the current result with the saved one

You can check the correct answer by solving this task in the CodeWorlds game.