React.js ~Testing For SnapShot~
toMatchSnapshot in React Testing Library toMatchSnapshot is a matcher in Jest (and Vitest). Used together with React Testing Library, it saves a component's output as a "snapshot" and detects differences in later test runs .