Snapshots for output you would diff by eye, nothing else
A snapshot of a whole React tree changes on every refactor and gets updated without being read. A snapshot of a generated SQL statement, an email body, or an error message is something a reviewer actually checks in the diff.
expect(buildQuery(filters)).toMatchInlineSnapshot(`"SELECT … WHERE status = $1"`);Inline snapshots keep the expectation next to the test. If you cannot tell whether a snapshot change is right by reading the diff, it should be an assertion instead.
testing