feat(web): scaffold Vite+React+TS, Tailwind v4, shadcn, router, тёмная console-тема

This commit is contained in:
2026-07-03 17:06:23 +07:00
parent 93cbe538e2
commit 41242973e1
33 changed files with 8681 additions and 0 deletions
+19
View File
@@ -0,0 +1,19 @@
import { render, screen, within } from "@testing-library/react"
import { MemoryRouter } from "react-router-dom"
import { QueryClient, QueryClientProvider } from "@tanstack/react-query"
import { App } from "./App"
test("renders navigation and redirects to domains", () => {
render(
<QueryClientProvider client={new QueryClient()}>
<MemoryRouter initialEntries={["/"]}>
<App />
</MemoryRouter>
</QueryClientProvider>,
)
// Sidebar nav also renders a "Domains" link label, so scope the assertion
// to the routed page content to unambiguously confirm the redirect + page.
const main = screen.getByRole("main")
expect(within(main).getByText("Domains")).toBeInTheDocument()
expect(screen.getByRole("link", { name: /domains/i })).toBeInTheDocument()
})