$
This commit is contained in:
19
__tests__/App.test.jsx
Normal file
19
__tests__/App.test.jsx
Normal file
@@ -0,0 +1,19 @@
|
||||
// src/__ tests __/App.test.tsx
|
||||
|
||||
import { expect, test } from "vitest";
|
||||
import { render } from "@testing-library/react";
|
||||
import App from "../src/App.jsx";
|
||||
import { BrowserRouter } from "react-router-dom";
|
||||
|
||||
test("demo", () => {
|
||||
expect(true).toBe(true);
|
||||
});
|
||||
|
||||
test("Renders the main page", () => {
|
||||
render(
|
||||
<BrowserRouter>
|
||||
<App />
|
||||
</BrowserRouter>,
|
||||
);
|
||||
expect(true).toBeTruthy();
|
||||
});
|
Reference in New Issue
Block a user