Skip to content

Commit 2830ce5

Browse files
committed
fix: test case
1 parent 19d5b8d commit 2830ce5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

expo-app/__tests__/expo-app.test.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
import React from "react";
2-
import { render } from "@testing-library/react-native";
2+
import { render, screen } from "@testing-library/react-native";
33
import App from "../app";
44

55
test("renders correctly", () => {
6-
const { getByText } = render(App);
6+
render(<App />);
77

88
// Check if a specific text or element is present in the component
9-
expect(getByText("SplashScreen")).toBeTruthy();
9+
expect(screen.getByText("SplashScreen")).toBeTruthy();
1010
});

0 commit comments

Comments
 (0)