Jest Snapshot Testing With Dates and Times

Originally published on Medium, which can be found here. 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 what individual pieces of text are based on the values of props....

September 19, 2017