Moving the test file to a different directory

This commit is contained in:
Keith Stevens
2023-01-18 15:31:31 +09:00
parent 67c820d379
commit 04b14bb24b
+10
View File
@@ -0,0 +1,10 @@
import { render, screen } from "@testing-library/react";
import AboutPage from "src/pages/about";
describe("About page", () => {
it("should render correctly", () => {
render(<AboutPage />);
expect(screen.getByRole("heading", { level: 1 })).toHaveTextContent("What is OpenAssistant?");
});
});