Like taking a photo of your living room arrangement — if anything moves, the new photo won't match.
On first run, toMatchSnapshot() creates a .snap file containing the serialized HTML. Subsequent runs compare against this stored snapshot.
> First run: no snapshot file found > Creating __snapshots__/button.test.tsx.snap > Snapshot written — 1 new snapshot
Like taking a photo of your living room arrangement — if anything moves, the new photo won't match.
On first run, toMatchSnapshot() creates a .snap file containing the serialized HTML. Subsequent runs compare against this stored snapshot.
> First run: no snapshot file found > Creating __snapshots__/button.test.tsx.snap > Snapshot written — 1 new snapshot
Sign in to cast your vote
Sign in to share your feedback and join the discussion.