Update and resolves tests

This commit is contained in:
adilallo
2026-02-06 08:06:50 -07:00
parent aef04c525a
commit e3478e6105
38 changed files with 40 additions and 39 deletions
+2 -2
View File
@@ -1,7 +1,7 @@
import React from "react";
import { render, screen } from "@testing-library/react";
import { describe, it, expect, vi } from "vitest";
import RelatedArticles from "../../app/components/RelatedArticles";
import RelatedArticles from "../../app/components/sections/RelatedArticles";
import type { BlogPost } from "../../lib/content";
vi.mock("next/link", () => ({
@@ -12,7 +12,7 @@ vi.mock("next/link", () => ({
),
}));
vi.mock("../../app/components/ContentThumbnailTemplate", () => ({
vi.mock("../../app/components/content/ContentThumbnailTemplate", () => ({
default: ({ post }: { post: BlogPost }) => (
<div data-testid={`thumbnail-${post.slug}`}>
<a href={`/blog/${post.slug}`}>