mirror of
https://github.com/gethomepage/homepage.git
synced 2026-02-08 00:40:52 +08:00
test: add coverage for core pages + page assets
This commit is contained in:
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user