update vitest setup
This commit is contained in:
10
react-advanced-tag1/src/components/Footer.test.tsx
Normal file
10
react-advanced-tag1/src/components/Footer.test.tsx
Normal file
@@ -0,0 +1,10 @@
|
||||
import { render, screen } from "@testing-library/react";
|
||||
import Footer from "./Footer";
|
||||
import { describe, it, expect } from "vitest";
|
||||
|
||||
describe("Footer Component", () => {
|
||||
it("should render the footer with correct content", () => {
|
||||
render(<Footer />);
|
||||
expect(screen.getByText(/© 2025 Your Company/i)).toBeDefined();
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user