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 "./TypeSpecimen.fixtures.js"; import * as family from "./TypeSpecimen.js"; snapshotFixtures(family.TypeSpecimen, fixtures); describe("every export renders its element and class", () => { for (const [exportName, Component] of Object.entries(family)) { it(exportName, () => { expect(html(x)).toMatchSnapshot(); }); } it("meta keeps nested markup", () => { expect(html(Inter 48px)).toMatchSnapshot(); }); }); snapshotStylesheet(resolve(__dirname, "./TypeSpecimen.css"));