Use Jest's Snapshot Testing Feature

InstructorKent C. Dodds

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.

Free Community Resource

A Community Resource means that it’s free to access for all. The instructor of this lesson requested it to be open to the public.

Francisco
Francisco
~ 4 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)
~ 4 years ago

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

dirakkk
dirakkk
~ 4 years ago

Great lesson Kent.Thanks