Skip to content

Commit ca6a3b0

Browse files
authored
Create App.test.jsx
1 parent 3a4c31e commit ca6a3b0

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)