Debugging and Testing in React Native

What is the purpose of end-to-end testing in React Native?