React |Testing in React | Question 6

Last Updated :
Discuss
Comments

What is the main purpose of snapshot testing in React?

To measure the performance of the component

To ensure the UI does not change unexpectedly

To check for memory leaks

To test asynchronous components

Share your thoughts in the comments