## Lesson — Use granular assertions rather than snapshots when testing

**Tags:** architecture, curated
**Pattern:** \.toMatch(Inline)?Snapshot\s*\(
**Engine:** regex
**Scope:** **/*.test.ts, **/*.test.js, **/*.test.tsx, **/*.test.jsx, **/*.spec.ts, **/*.spec.js, **/*.spec.tsx, **/*.spec.jsx
**Severity:** error

Use granular assertions rather than snapshots when testing.
