| author | |
| committer | |
| log | 73f8cfc023d70adbc8bf45afeab12cc8761d722b |
| tree | ee9422157992803c5c6031d6c06739c95be7761a |
| parent | a6797b3b97dca6b6941574ff062d069c45c89b9a |
| signature | Signed by PGP key B5690EEEBB952194 |
Co-authored-by: t3-code[bot] <269035359+t3-code[bot]@users.noreply.github.com>
Co-authored-by: Julius Marminge <51714798+juliusmarminge@users.noreply.github.com>8 files changed, 0 insertions(+), 135 deletions(-)
apps/mobile/src/lib/mobileBranding.test.ts deleted-14| ... | ... | @@ -1,14 +0,0 @@ |
| 1 | import { describe, expect, it } from "vite-plus/test"; | |
| 2 | ||
| 3 | import { resolveMobileStageLabel } from "./mobileBranding"; | |
| 4 | ||
| 5 | describe("resolveMobileStageLabel", () => { | |
| 6 | it.each([ | |
| 7 | ["development", "Dev"], | |
| 8 | ["preview", "Nightly"], | |
| 9 | ["production", "Alpha"], | |
| 10 | [undefined, "Alpha"], | |
| 11 | ])("maps %s builds to %s", (appVariant, expected) => { | |
| 12 | expect(resolveMobileStageLabel(appVariant)).toBe(expected); | |
| 13 | }); | |
| 14 | }); |
apps/server/src/observability/Attributes.test.ts deleted-11| ... | ... | @@ -1,11 +0,0 @@ |
| 1 | import { assert, describe, it } from "@effect/vitest"; | |
| 2 | ||
| 3 | import { normalizeModelMetricLabel } from "./Attributes.ts"; | |
| 4 | ||
| 5 | describe("Attributes", () => { | |
| 6 | it("groups GPT-family models under a shared metric label", () => { | |
| 7 | assert.strictEqual(normalizeModelMetricLabel("gpt-4o"), "gpt"); | |
| 8 | assert.strictEqual(normalizeModelMetricLabel("gpt-5.4"), "gpt"); | |
| 9 | assert.strictEqual(normalizeModelMetricLabel("claude-sonnet-4"), "claude"); | |
| 10 | }); | |
| 11 | }); |
apps/web/src/assets/assetUrls.test.ts deleted-15| ... | ... | @@ -1,15 +0,0 @@ |
| 1 | import { describe, expect, it } from "vite-plus/test"; | |
| 2 | ||
| 3 | import { resolveAssetUrl } from "./assetUrls"; | |
| 4 | ||
| 5 | describe("resolveAssetUrl", () => { | |
| 6 | it("resolves an environment-relative asset URL", () => { | |
| 7 | expect( | |
| 8 | resolveAssetUrl("https://environment.example/base/", "/api/assets/signed-token/favicon.png"), | |
| 9 | ).toBe("https://environment.example/api/assets/signed-token/favicon.png"); | |
| 10 | }); | |
| 11 | ||
| 12 | it("rejects an invalid environment base URL", () => { | |
| 13 | expect(resolveAssetUrl("not a URL", "/api/assets/signed-token/favicon.png")).toBeNull(); | |
| 14 | }); | |
| 15 | }); |
apps/web/src/components/StartTruncatedPath.test.tsx deleted-31| ... | ... | @@ -1,31 +0,0 @@ |
| 1 | import { renderToStaticMarkup } from "react-dom/server"; | |
| 2 | import { describe, expect, it } from "vite-plus/test"; | |
| 3 | ||
| 4 | import { StartTruncatedPath } from "./StartTruncatedPath"; | |
| 5 | ||
| 6 | describe("StartTruncatedPath", () => { | |
| 7 | it("keeps the filename at the visible end by truncating from the start", () => { | |
| 8 | const path = "apps/desktop/src/components/very/long/CommitDialog.tsx"; | |
| 9 | ||
| 10 | const markup = renderToStaticMarkup(<StartTruncatedPath path={path} />); | |
| 11 | ||
| 12 | expect(markup).toContain('dir="rtl"'); | |
| 13 | expect(markup).toMatch( | |
| 14 | /<bdi[^>]*>apps\/desktop\/src\/components\/very\/long\/CommitDialog\.tsx<\/bdi>/, | |
| 15 | ); | |
| 16 | expect(markup).toContain("overflow-hidden"); | |
| 17 | expect(markup).toContain("text-ellipsis"); | |
| 18 | expect(markup).toContain("whitespace-nowrap"); | |
| 19 | expect(markup).toContain("min-w-0"); | |
| 20 | }); | |
| 21 | ||
| 22 | it("shows the full path in a tooltip", () => { | |
| 23 | const path = "apps/desktop/src/components/very/long/CommitDialog.tsx"; | |
| 24 | ||
| 25 | const markup = renderToStaticMarkup(<StartTruncatedPath path={path} />); | |
| 26 | ||
| 27 | expect(markup).toContain('data-slot="tooltip-trigger"'); | |
| 28 | expect(markup).toContain("data-base-ui-tooltip-trigger"); | |
| 29 | expect(markup).toContain(path); | |
| 30 | }); | |
| 31 | }); |
apps/web/src/components/preview/previewAutomationClientId.test.ts deleted-13| ... | ... | @@ -1,13 +0,0 @@ |
| 1 | import { describe, expect, it } from "vite-plus/test"; | |
| 2 | ||
| 3 | import { createPreviewAutomationClientId } from "./previewAutomationClientId"; | |
| 4 | ||
| 5 | describe("createPreviewAutomationClientId", () => { | |
| 6 | it("creates bounded cryptographically random identities for independent host lifetimes", () => { | |
| 7 | const clientIds = Array.from({ length: 32 }, createPreviewAutomationClientId); | |
| 8 | ||
| 9 | expect(new Set(clientIds).size).toBe(clientIds.length); | |
| 10 | expect(clientIds.every((clientId) => clientId.startsWith("preview-"))).toBe(true); | |
| 11 | expect(clientIds.every((clientId) => clientId.length <= 128)).toBe(true); | |
| 12 | }); | |
| 13 | }); |
apps/web/src/components/ui/toggle-group.test.tsx deleted-19| ... | ... | @@ -1,19 +0,0 @@ |
| 1 | import { renderToStaticMarkup } from "react-dom/server"; | |
| 2 | import { describe, expect, it } from "vite-plus/test"; | |
| 3 | ||
| 4 | import { Toggle, ToggleGroup } from "./toggle-group"; | |
| 5 | ||
| 6 | describe("toggle group segmented defaults", () => { | |
| 7 | it("derives the segmented item size from the variant", () => { | |
| 8 | const html = renderToStaticMarkup( | |
| 9 | <ToggleGroup variant="segmented" value={["a"]}> | |
| 10 | <Toggle value="a">A</Toggle> | |
| 11 | </ToggleGroup>, | |
| 12 | ); | |
| 13 | ||
| 14 | expect(html.match(/data-size="segmented"/g)).toHaveLength(2); | |
| 15 | expect(html).toContain("h-6"); | |
| 16 | expect(html).toContain("dark:hover:bg-input/32"); | |
| 17 | expect(html).toContain("dark:data-pressed:bg-input/72"); | |
| 18 | }); | |
| 19 | }); |
apps/web/src/reactGrabBoundary.test.ts deleted-12| ... | ... | @@ -1,12 +0,0 @@ |
| 1 | import { describe, expect, it } from "vite-plus/test"; | |
| 2 | ||
| 3 | import packageJson from "../package.json" with { type: "json" }; | |
| 4 | import mainSource from "./main.tsx?raw"; | |
| 5 | ||
| 6 | describe("React Grab runtime boundary", () => { | |
| 7 | it("keeps the host renderer free of the React Grab overlay", () => { | |
| 8 | expect(mainSource).not.toMatch(/import\(["']react-grab["']\)/); | |
| 9 | expect(packageJson.dependencies).not.toHaveProperty("react-grab"); | |
| 10 | expect(packageJson.devDependencies).not.toHaveProperty("react-grab"); | |
| 11 | }); | |
| 12 | }); |
packages/shared/src/themePreview.test.ts deleted-20| ... | ... | @@ -1,20 +0,0 @@ |
| 1 | import { describe, expect, it } from "@effect/vitest"; | |
| 2 | ||
| 3 | import { | |
| 4 | mixThemePreviewBase, | |
| 5 | STANDARD_THEME_PREVIEW_COLORS, | |
| 6 | THEME_PREVIEW_RENDER_SPECS, | |
| 7 | } from "./themePreview.js"; | |
| 8 | ||
| 9 | describe("theme preview", () => { | |
| 10 | it("keeps the desktop preview geometry stable across clients", () => { | |
| 11 | expect(THEME_PREVIEW_RENDER_SPECS.light!.accent.center).toEqual([0.72, 0.22]); | |
| 12 | expect(THEME_PREVIEW_RENDER_SPECS.dark!.accent.middleOpacity).toBe(0.62); | |
| 13 | expect(THEME_PREVIEW_RENDER_SPECS.dark!.action.center).toEqual([0.82, 0.18]); | |
| 14 | }); | |
| 15 | ||
| 16 | it("mixes the standard canvas bases in OKLab", () => { | |
| 17 | expect(mixThemePreviewBase(STANDARD_THEME_PREVIEW_COLORS.light!, "light")).toBe("#fdfdfd"); | |
| 18 | expect(mixThemePreviewBase(STANDARD_THEME_PREVIEW_COLORS.dark!, "dark")).toBe("#0a0a0a"); | |
| 19 | }); | |
| 20 | }); |