import { resolve } from "node:path"; import { describe, expect, it } from "vitest"; import { html } from "../../test/render.js"; import { snapshotFixtures } from "../../test/snapshot.js"; import { snapshotStylesheet } from "../../test/stylesheet.js"; import { fixtures } from "./TokenSpecimen.fixtures.js"; import * as family from "./TokenSpecimen.js"; snapshotFixtures(family.TokenSpecimen, fixtures); describe("every export renders its element and class", () => { for (const [exportName, Component] of Object.entries(family)) { it(exportName, () => { expect(html(x)).toMatchSnapshot(); }); } it("spacer width and box radius and shadow", () => { expect(html()).toMatchSnapshot(); expect(html()).toMatchSnapshot(); expect(html()).toMatchSnapshot(); }); }); snapshotStylesheet(resolve(__dirname, "./TokenSpecimen.css"));