We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3a4c31e commit ca6a3b0Copy full SHA for ca6a3b0
frontend/src/__tests__/App.test.jsx
@@ -0,0 +1,12 @@
1
+import { render, screen } from "@testing-library/react";
2
+import { BrowserRouter } from "react-router-dom";
3
+import App from "../App";
4
+
5
+test("renders navbar and home page", () => {
6
+ render(
7
+ <BrowserRouter>
8
+ <App />
9
+ </BrowserRouter>
10
+ );
11
+ expect(screen.getByText(/Welcome to the Fullstack App/i)).toBeInTheDocument();
12
+});
0 commit comments