⚒️ Category example test.

This commit is contained in:
pheralb 2022-06-23 17:21:55 +01:00
parent 8dc456e406
commit dfdbb66a73

View File

@ -0,0 +1,11 @@
import React from "react";
import { test, expect } from "vitest";
import { render, screen } from "@testing-library/react";
import "@testing-library/jest-dom";
import Categories from "@/layout/header/categories";
test("renders learn react link", () => {
render(<Categories />);
const showText = screen.getByText(/software/i);
expect(showText).toBeInTheDocument();
});