We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 19d5b8d commit 2830ce5Copy full SHA for 2830ce5
expo-app/__tests__/expo-app.test.js
@@ -1,10 +1,10 @@
1
import React from "react";
2
-import { render } from "@testing-library/react-native";
+import { render, screen } from "@testing-library/react-native";
3
import App from "../app";
4
5
test("renders correctly", () => {
6
- const { getByText } = render(App);
+ render(<App />);
7
8
// Check if a specific text or element is present in the component
9
- expect(getByText("SplashScreen")).toBeTruthy();
+ expect(screen.getByText("SplashScreen")).toBeTruthy();
10
});
0 commit comments