From 81a8e3aeb1b0a3e3335fcbaf10dfdbf917cf5e14 Mon Sep 17 00:00:00 2001 From: mfelipegs Date: Thu, 14 Mar 2024 00:16:10 -0300 Subject: [PATCH] test: add welcome page test --- __tests__/welcome.test.tsx | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 __tests__/welcome.test.tsx diff --git a/__tests__/welcome.test.tsx b/__tests__/welcome.test.tsx new file mode 100644 index 0000000..1aa52d8 --- /dev/null +++ b/__tests__/welcome.test.tsx @@ -0,0 +1,9 @@ +import React from "react" +import { render } from "@testing-library/react-native" +import WelcomeScreen from "../app/index" + +test("renders welcome page text", () => { + const { getByText } = render() + const welcomeText = getByText("Seja bem-vindo(a) ao Osiris!") + expect(welcomeText).toBeTruthy() +})