Update tests with new configuration

This commit is contained in:
adilallo
2026-01-28 14:50:30 -07:00
parent 63489ee38f
commit e6e5499646
8 changed files with 105 additions and 162 deletions
+7 -3
View File
@@ -12,9 +12,13 @@ vi.mock("next/link", () => ({
),
}));
vi.mock("../../lib/assetUtils", () => ({
getAssetPath: vi.fn((asset: string) => `/assets/${asset}`),
}));
vi.mock("../../lib/assetUtils", async (importOriginal) => {
const actual = (await importOriginal()) as typeof import("../../lib/assetUtils");
return {
...actual,
getAssetPath: vi.fn((asset: string) => `/assets/${asset}`),
};
});
const mockPost: BlogPost = {
slug: "test-article",