import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
import { describe, it, expect } from "vitest";
import { render, screen } from "@testing-library/react";
import { FormGroup } from "./form-group.js";
describe("FormGroup", () => {
    it("matches snapshot", () => {
        const { asFragment } = render(_jsxs(FormGroup, { children: [_jsx("input", { type: "text", placeholder: "Enter text" }), _jsx("label", { children: "Sample Label" })] }));
        expect(asFragment()).toMatchSnapshot();
    });
    it("renders children correctly", () => {
        render(_jsxs(FormGroup, { children: [_jsx("input", { type: "text", "data-testid": "child-input" }), _jsx("label", { children: "Test Label" })] }));
        expect(screen.getByTestId("child-input")).toBeInTheDocument();
        expect(screen.getByText("Test Label")).toBeInTheDocument();
    });
});
//# sourceMappingURL=form-group.test.js.map