Debugging and Testing in React Native

What is the purpose of snapshot testing in React Native?