TypeScript
test: remove low-signal test files (#8397)
t3-code[bot]73f8cfc023d7
diff --git a/apps/mobile/src/lib/mobileBranding.test.ts b/apps/mobile/src/lib/mobileBranding.test.tsdeleted file mode 100644index 48a84b3f985..00000000000--- a/apps/mobile/src/lib/mobileBranding.test.ts+++ /dev/null@@ -1,14 +0,0 @@-import { describe, expect, it } from "vite-plus/test";--import { resolveMobileStageLabel } from "./mobileBranding";--describe("resolveMobileStageLabel", () => {- it.each([- ["development", "Dev"],- ["preview", "Nightly"],- ["production", "Alpha"],- [undefined, "Alpha"],- ])("maps %s builds to %s", (appVariant, expected) => {- expect(resolveMobileStageLabel(appVariant)).toBe(expected);- });-});diff --git a/apps/server/src/observability/Attributes.test.ts b/apps/server/src/observability/Attributes.test.tsdeleted file mode 100644index d9ed2e1271f..00000000000--- a/apps/server/src/observability/Attributes.test.ts+++ /dev/null@@ -1,11 +0,0 @@-import { assert, describe, it } from "@effect/vitest";--import { normalizeModelMetricLabel } from "./Attributes.ts";--describe("Attributes", () => {- it("groups GPT-family models under a shared metric label", () => {- assert.strictEqual(normalizeModelMetricLabel("gpt-4o"), "gpt");- assert.strictEqual(normalizeModelMetricLabel("gpt-5.4"), "gpt");- assert.strictEqual(normalizeModelMetricLabel("claude-sonnet-4"), "claude");- });-});diff --git a/apps/web/src/assets/assetUrls.test.ts b/apps/web/src/assets/assetUrls.test.tsdeleted file mode 100644index e4634f5b98d..00000000000--- a/apps/web/src/assets/assetUrls.test.ts+++ /dev/null@@ -1,15 +0,0 @@-import { describe, expect, it } from "vite-plus/test";--import { resolveAssetUrl } from "./assetUrls";--describe("resolveAssetUrl", () => {- it("resolves an environment-relative asset URL", () => {- expect(- resolveAssetUrl("https://environment.example/base/", "/api/assets/signed-token/favicon.png"),- ).toBe("https://environment.example/api/assets/signed-token/favicon.png");- });-- it("rejects an invalid environment base URL", () => {- expect(resolveAssetUrl("not a URL", "/api/assets/signed-token/favicon.png")).toBeNull();- });-});diff --git a/apps/web/src/components/StartTruncatedPath.test.tsx b/apps/web/src/components/StartTruncatedPath.test.tsxdeleted file mode 100644index 1f7b158bce3..00000000000--- a/apps/web/src/components/StartTruncatedPath.test.tsx+++ /dev/null@@ -1,31 +0,0 @@-import { renderToStaticMarkup } from "react-dom/server";-import { describe, expect, it } from "vite-plus/test";--import { StartTruncatedPath } from "./StartTruncatedPath";--describe("StartTruncatedPath", () => {- it("keeps the filename at the visible end by truncating from the start", () => {- const path = "apps/desktop/src/components/very/long/CommitDialog.tsx";-- const markup = renderToStaticMarkup(<StartTruncatedPath path={path} />);-- expect(markup).toContain('dir="rtl"');- expect(markup).toMatch(- /<bdi[^>]*>apps\/desktop\/src\/components\/very\/long\/CommitDialog\.tsx<\/bdi>/,- );- expect(markup).toContain("overflow-hidden");- expect(markup).toContain("text-ellipsis");- expect(markup).toContain("whitespace-nowrap");- expect(markup).toContain("min-w-0");- });-- it("shows the full path in a tooltip", () => {- const path = "apps/desktop/src/components/very/long/CommitDialog.tsx";-- const markup = renderToStaticMarkup(<StartTruncatedPath path={path} />);-- expect(markup).toContain('data-slot="tooltip-trigger"');- expect(markup).toContain("data-base-ui-tooltip-trigger");- expect(markup).toContain(path);- });-});diff --git a/apps/web/src/components/preview/previewAutomationClientId.test.ts b/apps/web/src/components/preview/previewAutomationClientId.test.tsdeleted file mode 100644index f51732d91a4..00000000000--- a/apps/web/src/components/preview/previewAutomationClientId.test.ts+++ /dev/null@@ -1,13 +0,0 @@-import { describe, expect, it } from "vite-plus/test";--import { createPreviewAutomationClientId } from "./previewAutomationClientId";--describe("createPreviewAutomationClientId", () => {- it("creates bounded cryptographically random identities for independent host lifetimes", () => {- const clientIds = Array.from({ length: 32 }, createPreviewAutomationClientId);-- expect(new Set(clientIds).size).toBe(clientIds.length);- expect(clientIds.every((clientId) => clientId.startsWith("preview-"))).toBe(true);- expect(clientIds.every((clientId) => clientId.length <= 128)).toBe(true);- });-});diff --git a/apps/web/src/components/ui/toggle-group.test.tsx b/apps/web/src/components/ui/toggle-group.test.tsxdeleted file mode 100644index c2403c9f117..00000000000--- a/apps/web/src/components/ui/toggle-group.test.tsx+++ /dev/null@@ -1,19 +0,0 @@-import { renderToStaticMarkup } from "react-dom/server";-import { describe, expect, it } from "vite-plus/test";--import { Toggle, ToggleGroup } from "./toggle-group";--describe("toggle group segmented defaults", () => {- it("derives the segmented item size from the variant", () => {- const html = renderToStaticMarkup(- <ToggleGroup variant="segmented" value={["a"]}>- <Toggle value="a">A</Toggle>- </ToggleGroup>,- );-- expect(html.match(/data-size="segmented"/g)).toHaveLength(2);- expect(html).toContain("h-6");- expect(html).toContain("dark:hover:bg-input/32");- expect(html).toContain("dark:data-pressed:bg-input/72");- });-});diff --git a/apps/web/src/reactGrabBoundary.test.ts b/apps/web/src/reactGrabBoundary.test.tsdeleted file mode 100644index 9481e2dd9fa..00000000000--- a/apps/web/src/reactGrabBoundary.test.ts+++ /dev/null@@ -1,12 +0,0 @@-import { describe, expect, it } from "vite-plus/test";--import packageJson from "../package.json" with { type: "json" };-import mainSource from "./main.tsx?raw";--describe("React Grab runtime boundary", () => {- it("keeps the host renderer free of the React Grab overlay", () => {- expect(mainSource).not.toMatch(/import\(["']react-grab["']\)/);- expect(packageJson.dependencies).not.toHaveProperty("react-grab");- expect(packageJson.devDependencies).not.toHaveProperty("react-grab");- });-});diff --git a/packages/shared/src/themePreview.test.ts b/packages/shared/src/themePreview.test.tsdeleted file mode 100644index f1cc02e10f7..00000000000--- a/packages/shared/src/themePreview.test.ts+++ /dev/null@@ -1,20 +0,0 @@-import { describe, expect, it } from "@effect/vitest";--import {- mixThemePreviewBase,- STANDARD_THEME_PREVIEW_COLORS,- THEME_PREVIEW_RENDER_SPECS,-} from "./themePreview.js";--describe("theme preview", () => {- it("keeps the desktop preview geometry stable across clients", () => {- expect(THEME_PREVIEW_RENDER_SPECS.light!.accent.center).toEqual([0.72, 0.22]);- expect(THEME_PREVIEW_RENDER_SPECS.dark!.accent.middleOpacity).toBe(0.62);- expect(THEME_PREVIEW_RENDER_SPECS.dark!.action.center).toEqual([0.82, 0.18]);- });-- it("mixes the standard canvas bases in OKLab", () => {- expect(mixThemePreviewBase(STANDARD_THEME_PREVIEW_COLORS.light!, "light")).toBe("#fdfdfd");- expect(mixThemePreviewBase(STANDARD_THEME_PREVIEW_COLORS.dark!, "dark")).toBe("#0a0a0a");- });-});