Snapshot testing - alexanderteplov/computer-science GitHub Wiki

Snapshot testing

Snapshot testing is an approach to test interfaces that differ from unit tests or any. It only asserts that the output stays the same during the time.

Jest snapshots work well only with CSS-in-JS. Otherwise, they don't capture styles and are mostly useless.

Snapshots, in general, mostly fit static content.

They don't reveal a problem.

They encourage blind updates instead of checking for problems.

Snapshots may consume a lot of space.

Links

⚠️ **GitHub.com Fallback** ⚠️