import { render, screen } from "@testing-library/react"; import { expect, test } from "vitest"; import { MetricCard } from "./MetricCard.jsx"; test("renders a down arrow when delta text is negative", () => { render(); expect(screen.getByText("↓ 39.27%")).toBeInTheDocument(); });