Snapshot Testing
Jest Inline Snapshots: A Practical Guide
Jest has two kinds of snapshot tests: external snapshots (stored in __snapshots__/ files) and inline snapshots (written directly in the test file). Inline snapshots were added in Jest 26 and offer a different trade-off that makes them preferable in many situations. This guide covers how inline snapshots work, how