-
-
리더보드
@@ -49,8 +45,6 @@ export default function Leaderboard() {
))}
-
-
);
}
diff --git a/src/components/Progress/Progress.test.tsx b/src/components/Progress/Progress.test.tsx
index a326086f..78c6e991 100644
--- a/src/components/Progress/Progress.test.tsx
+++ b/src/components/Progress/Progress.test.tsx
@@ -1,37 +1,13 @@
import { faker } from "@faker-js/faker";
-import { expect } from "vitest";
import { render, screen } from "@testing-library/react";
-import Progress from "./Progress";
+import { expect, test, vi } from "vitest";
import { mock } from "vitest-mock-extended";
-import useMembers from "../../hooks/useMembers";
-import { test, vi } from "vitest";
import { type Member, Grade } from "../../api/services/types";
+import useMembers from "../../hooks/useMembers";
+import Progress from "./Progress";
vi.mock("../../hooks/useMembers");
-test("render the site header", () => {
- vi.mocked(useMembers).mockReturnValue(
- mock({
- isLoading: false,
- error: null,
- members: [mockMember({ id: "sam" })],
- totalCohorts: 3, // Add missing property
- filter: { name: "", cohort: null }, // Add missing property
- setFilter: vi.fn(), // Add mock function
- }),
- );
-
- vi.stubGlobal("location", {
- href: `http://example.com?member=sam`,
- search: `?member=sam`,
- });
-
- render(