import React from "react"; import { render, screen } from "@testing-library/react"; import { expect, test } from "vitest"; // Component import TabLayout from "./TabLayout"; const testTabs = [
Test Tab
,
Test Tab
,
Test Tab
, ]; test("should display the TabLayout with required props", () => { render({testTabs}); expect(screen.getAllByText("Test Tab")).toHaveLength(3); });