test: add coverage for core pages + page assets

This commit is contained in:
shamoon
2026-02-04 08:53:38 -08:00
parent c576fbeb54
commit 0516b5f816
8 changed files with 300 additions and 0 deletions

View File

@@ -10,6 +10,8 @@ afterEach(() => {
// implement a couple of common formatters mocked in next-i18next
vi.mock("next-i18next", () => ({
// Keep app/page components importable in unit tests.
appWithTranslation: (Component) => Component,
useTranslation: () => ({
i18n: { language: "en" },
t: (key, opts) => {