What is the practical use of Jest's snapshot testing?

What is the practical use of

Jest"s snapshot testing?

Nov.22,2021

is used for comparison. If you thought ok was something, save a snapshot and compare it to the next test


is so useful.

it is an effective supplement to your unit tests and is not a substitute for anything. Of course, your project has no unit tests at all, so adding a snapshot of
is a bit guaranteed.

you can take a look at the unit test of antd, which migrates snapshot of jest a long time ago

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1bf3352-31e79.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1bf3352-31e79.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?