Jest Snapshots are increasingly being used to test React Components. Snapshots are generally testing the initial rendering of a component, while DOM style testing is to be used for more interactive and manipulative testing.

#jest #react #javascript #unit-testing

Unit Testing for React with Jest Snapshots
4.35 GEEK