Jest is the default test runner for React Native, and `@testing-library/react-native` lets you test components the way a user interacts with them — by text and role, not implementation details.
import { render, screen, fireEvent } from "@testing-library/react-native";
test("increments counter on press", () => {
render(<Counter />);
fireEvent.press(screen.getByText("0"));
expect(screen.getByText("1")).toBeTruthy();
});Pure logic (formatters, reducers, validators) should be tested directly as plain functions — it's faster and more reliable than rendering a component just to check a calculation.