diff --git a/PTG/src/About.test.tsx b/PTG/src/About.test.tsx new file mode 100644 index 0000000..3b7145c --- /dev/null +++ b/PTG/src/About.test.tsx @@ -0,0 +1,12 @@ +import { render } from "@testing-library/react"; +import { describe, expect, it } from "vitest"; +import { MemoryRouter } from "react-router-dom"; +import About from "./About"; + +describe("About", () => { + it("matches snapshot", () => { + const { container } = render(, { wrapper: MemoryRouter }); + + expect(container.firstChild).toMatchSnapshot(); + }); +}); diff --git a/PTG/src/Footer.test.tsx b/PTG/src/Footer.test.tsx new file mode 100644 index 0000000..bf1f98c --- /dev/null +++ b/PTG/src/Footer.test.tsx @@ -0,0 +1,11 @@ +import { render } from "@testing-library/react"; +import { describe, expect, it } from "vitest"; +import Footer from "./Footer"; + +describe("Footer", () => { + it("matches snapshot", () => { + const { container } = render(