import { describe, test, expect, vi } from "vitest"; import { render } from "@testing-library/react"; import { ListBox } from "."; import { Item } from "@components/Collection"; describe("ListBox", () => { describe("matches snapshots", () => { test("when closed", () => { const result = render( Item 1 Item 2 Item 3 ); expect(result.asFragment()).toMatchSnapshot(); }); }); });