import React from "react"; import { describe, test, expect } from "vitest"; import { render } from "@testing-library/react"; import { ComboBox } from "."; import { Item } from "../../Collection"; describe("matches snapshots", () => { const shared = { label: "Text Label", message: "message", error: "some error", value: "content", onChange: (value: any) => {}, children: [Item 1, Item 2], }; test("matches default variant", () => { const result = render(); expect(result.asFragment()).toMatchSnapshot(); }); test("matches floating variant", () => { const result = render(); expect(result.asFragment()).toMatchSnapshot(); }); });