var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
    return new (P || (P = Promise))(function (resolve, reject) {
        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
        function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
        step((generator = generator.apply(thisArg, _arguments || [])).next());
    });
};
import React from "react";
import { describe, it, expect, vi } from "vitest";
import { render, screen } from "@testing-library/react";
import { Cards } from "./index";
// Mock dependencies
vi.mock("react-i18next", (importOriginal) => __awaiter(void 0, void 0, void 0, function* () {
    return (Object.assign(Object.assign({}, (yield importOriginal())), { useTranslation: () => ({
            t: (key) => `translated:${key}`,
        }) }));
}));
vi.mock("~/hooks/useResponsiveBreakpoints", () => ({
    useResponsiveBreakpoints: () => ({
        sm: true,
        md: true,
        lg: true,
        xl: true,
        "2xl": true,
    }),
}));
describe("Cards Component", () => {
    it("renders without crashing", () => {
        render(React.createElement(Cards, null));
        expect(screen.getByTestId("cards-component")).toBeInTheDocument();
    });
    it("renders two Card components with correct data-testid attributes", () => {
        render(React.createElement(Cards, null));
        expect(screen.getByTestId("card-neighborhoodIntel")).toBeInTheDocument();
        expect(screen.getByTestId("card-marketTrendsReport")).toBeInTheDocument();
    });
});
//# sourceMappingURL=index.test.js.map