What is 'snapshot testing' as used in Jest?
-
A
Taking a screenshot of the UI for visual comparison
-
B
Serializing a component's rendered output and comparing it to a stored reference on future runs
-
C
Saving test results to a database for trend analysis
-
D
Recording network requests for replay in future tests