Use Jest's Snapshot Testing Feature

Share this video with your friends

Send Tweet

Often when testing, you use the actual result to create your assertion and have to manually update it as you make changes to the feature. With Jest snapshot testing, you can let Jest do this part for you and write more tests and features faster and with more confidence. Let's learn about how you can use Jest snapshot testing to improve your own workflow.

Francisco
Francisco
~ 8 years ago

Hello Kent,

Where does react-test-renderer come from? do I need to npm install it?

Cheers, thanks for the videos.

Kent C. Dodds
Kent C. Dodds(instructor)
~ 8 years ago

Yes. I used that primarily for demonstration purposes. I plan to have a React-specific course eventually.

dirakkk
dirakkk
~ 8 years ago

Great lesson Kent.Thanks