Merge branch 'main' into oauth-flow-module

This commit is contained in:
Ullrich Schäfer 2026-06-10 07:45:35 +02:00 committed by GitHub
commit bed9362004
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -3,8 +3,10 @@ import { render, screen } from "@testing-library/react-native";
import { Text } from "react-native";
describe("Jest + React Native Testing Library", () => {
it("renders a component", () => {
render(<Text testID="hello">Hello</Text>);
it("renders a component", async () => {
// await is a no-op on RNTL v13 but required on v14, where render()
// returns a Promise
await render(<Text testID="hello">Hello</Text>);
expect(screen.getByTestId("hello")).toBeTruthy();
expect(screen.getByText("Hello")).toBeTruthy();
});