testing setup

This commit is contained in:
2025-08-29 14:19:38 +02:00
parent e74b30e04c
commit 869cc07fdd
46 changed files with 6710 additions and 1460 deletions

View File

@@ -0,0 +1,15 @@
import { vi } from "vitest"
vi.mock("next/navigation", () => {
return {
useRouter: vi.fn(() => {
return {
push: () => {},
replace: () => {},
prefetch: () => {},
}
}),
usePathname: vi.fn(() => '/'),
useSearchParams: vi.fn(() => new URLSearchParams()),
useServerInsertedHTML:vi.fn(() => {})
}
})