Skip to content

Erica Pisani

Members Public

Jest Snapshot Testing With Dates and Times

Snapshot testing is great for quickly creating unit tests for components by getting a ‘snapshot’ of what a component looks like when it’s rendered on the page given certain prop values. This removes the need to manually check the amount of specific elements being rendered on the component, or