Release Font Tools v0.1.0

This commit is contained in:
2026-09-01 14:35:39 +02:00
commit 25ff321f2a
65 changed files with 10590 additions and 0 deletions
+22
View File
@@ -0,0 +1,22 @@
import { render, screen } from "@testing-library/react";
import { describe, expect, it, vi } from "vitest";
import { Workbench } from "../../src/components/Workbench";
vi.mock("../../src/core/fontClient", () => ({
FontWorkerClient: class FontWorkerClient {},
}));
describe("Font Workbench", () => {
it("presents an actionable local-only empty state", () => {
render(<Workbench />);
expect(
screen.getByRole("heading", { name: "Know what is inside a font." }),
).toBeVisible();
expect(screen.getByLabelText("Open font")).toHaveAttribute(
"accept",
expect.stringContaining(".woff2"),
);
expect(screen.getByText(/Disposable worker/u)).toBeVisible();
expect(screen.getByRole("status")).toHaveTextContent("Choose a local");
});
});