Creating Snapshots

Learn how to create a snapshot for snapshot testing.

Managing the snapshot

After writing a snapshot test, Jest will create the snapshot on the first run and store it for future reference. Snapshots should be committed to any version control systems being used, such as GitHub or GitLabs. ...