Skip to content

Commit

Permalink
test: include _layout\tabs
Browse files Browse the repository at this point in the history
  • Loading branch information
Natyrodrigues committed Sep 18, 2024
1 parent e5ba29c commit 1cfeb26
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions src/app/__tests__/_layout.spec.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import React from "react";
import { render } from "@testing-library/react-native";
import AppLayout from "../_layout";
import TabsLayout from "../private/tabs/_layout";
import Toast from "react-native-toast-message";
import * as Notifications from "expo-notifications";

Expand Down Expand Up @@ -40,3 +41,19 @@ describe("AppLayout Component", () => {
expect(layoutView).toBeTruthy();
});
});

describe("TabsLayout", () => {
it("deve importar o componente TabsLayout corretamente", () => {
expect(TabsLayout).toBeDefined();
expect(typeof TabsLayout).toBe('function');
});

/*
it('deve renderizar o componente Tabs e seus filhos', () => {
const { getByTestId } = render(<TabsLayout />);
// Verifique a presença de um elemento específico no DOM
expect(getByTestId('tabs-mock')).toBeTruthy();
});
*/
});

0 comments on commit 1cfeb26

Please sign in to comment.