May 2019
Intermediate to advanced
316 pages
7h 13m
English
Snapshot testing is a useful tool to test that there are no unwanted changes in your user interface. Jest generates snapshot files when the snapshot tests are executed. The next time the tests are executed, the new snapshot is compared to the previous one. If there are changes between the content of the files, the test case fails and an error message is shown in the Terminal.
To start snapshot testing, perform the following steps:
Read now
Unlock full access