← Green Check: every kind of software test

Green Check: every kind of software test · Part 6

Hi undefined. Every test was green.

· by Tony Tang

A snapshot test only asks if the output changed. It never asks if it's right.

Who reads your snapshot diffs?

The scenario is an invented example. The test output on screen is real, from Vitest 5.1.0.

Vitest snapshots: https://vitest.dev/guide/snapshot

More from this series