1. What is Jest primarily used for in React Native projects?
Jest is a testing framework developed by Meta for unit and snapshot testing in JavaScript and React Native apps. It provides built-in mocking, code coverage, and a zero-config setup for fast feedback.
test('renders correctly', () => { const tree = renderer.create(<App />).toJSON(); expect(tree).toMatchSnapshot(); });