Skip to content
TypeScript

test(runtime): prune duplicate cases and unused test-only exports (#21851)

Julius Marminge3117be980beb
diff --git a/apps/server/src/persistence/Errors.test.ts b/apps/server/src/persistence/Errors.test.ts
index 2e8907d199b..840210a5d4c 100644
--- a/apps/server/src/persistence/Errors.test.ts
+++ b/apps/server/src/persistence/Errors.test.ts
@@ -4,7 +4,7 @@ import * as Effect from "effect/Effect";
import * as Schema from "effect/Schema";
import * as SqlClient from "effect/sql/SqlClient";
-import { PersistenceDecodeError, PersistenceSqlError, toPersistenceSqlError } from "./Errors.ts";
+import { PersistenceDecodeError, toPersistenceSqlError } from "./Errors.ts";
const decodeRuntimePayload = Schema.decodeUnknownEffect(
Schema.Struct({
@@ -14,19 +14,6 @@ const decodeRuntimePayload = Schema.decodeUnknownEffect(
}),
);
-it("keeps SQL operation context without a tautological detail", () => {
- const cause = new Error("database unavailable");
- const error = new PersistenceSqlError({
- operation: "AuthSessionRepository.list:query",
- cause,
- });
-
- assert.equal(error.operation, "AuthSessionRepository.list:query");
- assert.equal(error.detail, undefined);
- assert.equal(error.cause, cause);
- assert.equal(error.message, "SQL error in AuthSessionRepository.list:query");
-});
-
it.effect("names a real SQLite condition without copying query data", () =>
Effect.gen(function* () {
const sql = yield* SqlClient.SqlClient;
diff --git a/packages/contracts/src/keybindings.test.ts b/packages/contracts/src/keybindings.test.ts
index 1491fbe482b..96f80b4192e 100644
--- a/packages/contracts/src/keybindings.test.ts
+++ b/packages/contracts/src/keybindings.test.ts
@@ -22,138 +22,6 @@ const decode = <S extends Schema.Top>(
const decodeResolvedRule = Schema.decodeUnknownEffect(ResolvedKeybindingRule as never);
const encodeResolvedKeybindings = Schema.encodeEffect(ResolvedKeybindingsConfig);
-it.effect("parses keybinding rules", () =>
- Effect.gen(function* () {
- const parsed = yield* decode(KeybindingRule, {
- key: "mod+j",
- command: "terminal.toggle",
- });
- assert.strictEqual(parsed.command, "terminal.toggle");
-
- const parsedSidebarToggle = yield* decode(KeybindingRule, {
- key: "mod+b",
- command: "sidebar.toggle",
- });
- assert.strictEqual(parsedSidebarToggle.command, "sidebar.toggle");
-
- const parsedRightPanelToggle = yield* decode(KeybindingRule, {
- key: "mod+alt+b",
- command: "rightPanel.toggle",
- });
- assert.strictEqual(parsedRightPanelToggle.command, "rightPanel.toggle");
-
- const parsedThreadPanelToggle = yield* decode(KeybindingRule, {
- key: "mod+shift+b",
- command: "threadPanel.toggle",
- });
- assert.strictEqual(parsedThreadPanelToggle.command, "threadPanel.toggle");
- const parsedRightPanelToggleMaximized = yield* decode(KeybindingRule, {
- key: "mod+shift+m",
- command: "rightPanel.toggleMaximized",
- });
- assert.strictEqual(parsedRightPanelToggleMaximized.command, "rightPanel.toggleMaximized");
-
- const parsedClose = yield* decode(KeybindingRule, {
- key: "mod+w",
- command: "terminal.close",
- });
- assert.strictEqual(parsedClose.command, "terminal.close");
-
- const parsedDiffToggle = yield* decode(KeybindingRule, {
- key: "mod+d",
- command: "diff.toggle",
- });
- assert.strictEqual(parsedDiffToggle.command, "diff.toggle");
-
- const parsedCommandPalette = yield* decode(KeybindingRule, {
- key: "mod+k",
- command: "commandPalette.toggle",
- });
- assert.strictEqual(parsedCommandPalette.command, "commandPalette.toggle");
-
- const parsedFilePicker = yield* decode(KeybindingRule, {
- key: "mod+p",
- command: "filePicker.toggle",
- });
- assert.strictEqual(parsedFilePicker.command, "filePicker.toggle");
-
- const parsedProjectSearch = yield* decode(KeybindingRule, {
- key: "mod+shift+f",
- command: "projectSearch.toggle",
- });
- assert.strictEqual(parsedProjectSearch.command, "projectSearch.toggle");
-
- const parsedUsageOpen = yield* decode(KeybindingRule, {
- key: "mod+u",
- command: "usage.open",
- });
- assert.strictEqual(parsedUsageOpen.command, "usage.open");
-
- const parsedThemeEditor = yield* decode(KeybindingRule, {
- key: "mod+alt+shift+t",
- command: "themeEditor.toggle",
- });
- assert.strictEqual(parsedThemeEditor.command, "themeEditor.toggle");
-
- const parsedLocal = yield* decode(KeybindingRule, {
- key: "mod+shift+n",
- command: "chat.newLocal",
- });
- assert.strictEqual(parsedLocal.command, "chat.newLocal");
-
- const parsedFind = yield* decode(KeybindingRule, {
- key: "mod+f",
- command: "chat.find",
- });
- assert.strictEqual(parsedFind.command, "chat.find");
-
- const parsedModelPickerToggle = yield* decode(KeybindingRule, {
- key: "mod+shift+m",
- command: "modelPicker.toggle",
- });
- assert.strictEqual(parsedModelPickerToggle.command, "modelPicker.toggle");
-
- const parsedModelPickerJump = yield* decode(KeybindingRule, {
- key: "mod+1",
- command: "modelPicker.jump.1",
- });
- assert.strictEqual(parsedModelPickerJump.command, "modelPicker.jump.1");
-
- const parsedThreadPrevious = yield* decode(KeybindingRule, {
- key: "mod+shift+[",
- command: "thread.previous",
- });
- assert.strictEqual(parsedThreadPrevious.command, "thread.previous");
-
- const parsedThreadSettle = yield* decode(KeybindingRule, {
- key: "mod+shift+s",
- command: "thread.settle",
- when: "!terminalFocus",
- });
- assert.strictEqual(parsedThreadSettle.command, "thread.settle");
-
- const parsedThreadCopyReference = yield* decode(KeybindingRule, {
- key: "mod+shift+c",
- command: "thread.copyReference",
- when: "!terminalFocus",
- });
- assert.strictEqual(parsedThreadCopyReference.command, "thread.copyReference");
-
- const parsedPullRequestCopyNumber = yield* decode(KeybindingRule, {
- key: "mod+shift+k",
- command: "pullRequest.copyNumber",
- when: "!terminalFocus",
- });
- assert.strictEqual(parsedPullRequestCopyNumber.command, "pullRequest.copyNumber");
-
- const parsedThreadStop = yield* decode(KeybindingRule, {
- key: "mod+escape",
- command: "thread.stop",
- });
- assert.strictEqual(parsedThreadStop.command, "thread.stop");
- }),
-);
-
it.effect("rejects invalid command values", () =>
Effect.gen(function* () {
const result = yield* Effect.exit(
diff --git a/packages/contracts/src/rpc.test.ts b/packages/contracts/src/rpc.test.ts
index f0c15f65094..aa396b9ff6a 100644
--- a/packages/contracts/src/rpc.test.ts
+++ b/packages/contracts/src/rpc.test.ts
@@ -6,12 +6,6 @@ import { ORCHESTRATION_V2_WS_METHODS } from "./orchestrationV2.ts";
import { WS_METHODS, WsRpcGroup, WsSubscribeServerConfigRpc } from "./rpc.ts";
describe("subscribeServerConfig payload compatibility", () => {
- it("is accepted by a server whose schema predates the field", () => {
- const oldServerPayload = Schema.Struct({});
- const decoded = Schema.decodeExit(oldServerPayload)({ environmentThemes: true });
- expect(Exit.isSuccess(decoded)).toBe(true);
- });
-
it("is carried by a server that declares it", () => {
const decoded = Schema.decodeSync(WsSubscribeServerConfigRpc.payloadSchema)({
environmentThemes: true,
diff --git a/packages/contracts/src/settings.test.ts b/packages/contracts/src/settings.test.ts
index c92b3a6a8e1..9f16bbc74a9 100644
--- a/packages/contracts/src/settings.test.ts
+++ b/packages/contracts/src/settings.test.ts
@@ -598,7 +598,7 @@ describe("ClientSettings glass opacity", () => {
expect(() => decodeClientSettingsPatch({ glassOpacity: value })).toThrow();
});
- it.each([40, 75, 100])("accepts a glass opacity within the supported range: %s", (value) => {
+ it.each([40, 100])("accepts a glass opacity within the supported range: %s", (value) => {
expect(decodeClientSettings({ glassOpacity: value }).glassOpacity).toBe(value);
expect(decodeClientSettingsPatch({ glassOpacity: value }).glassOpacity).toBe(value);
});
@@ -614,7 +614,7 @@ describe("ClientSettings appearance contrast", () => {
expect(() => decodeClientSettingsPatch({ appearanceContrast: value })).toThrow();
});
- it.each([50, 100, 150, 200])("accepts an appearance contrast in range: %s", (value) => {
+ it.each([50, 200])("accepts an appearance contrast in range: %s", (value) => {
expect(decodeClientSettings({ appearanceContrast: value }).appearanceContrast).toBe(value);
expect(decodeClientSettingsPatch({ appearanceContrast: value }).appearanceContrast).toBe(value);
});
diff --git a/packages/shared/src/cliArgs.test.ts b/packages/shared/src/cliArgs.test.ts
index 58ef904b81e..98f6f858021 100644
--- a/packages/shared/src/cliArgs.test.ts
+++ b/packages/shared/src/cliArgs.test.ts
@@ -66,20 +66,6 @@ describe("parseCliArgs", () => {
});
});
- it("parses --chrome with --verbose", () => {
- expect(parseCliArgs("--chrome --verbose")).toEqual({
- flags: { chrome: null, verbose: null },
- positionals: [],
- });
- });
-
- it("parses --effort with a value", () => {
- expect(parseCliArgs("--effort high")).toEqual({
- flags: { effort: "high" },
- positionals: [],
- });
- });
-
it("parses --chrome --effort high --debug", () => {
expect(parseCliArgs("--chrome --effort high --debug")).toEqual({
flags: { chrome: null, effort: "high", debug: null },
@@ -87,20 +73,6 @@ describe("parseCliArgs", () => {
});
});
- it("parses --model with full model name", () => {
- expect(parseCliArgs("--model claude-sonnet-4-6")).toEqual({
- flags: { model: "claude-sonnet-4-6" },
- positionals: [],
- });
- });
-
- it("parses --append-system-prompt with value and --chrome", () => {
- expect(parseCliArgs("--append-system-prompt always-think-step-by-step --chrome")).toEqual({
- flags: { "append-system-prompt": "always-think-step-by-step", chrome: null },
- positionals: [],
- });
- });
-
it("parses quoted --append-system-prompt with value and --chrome", () => {
expect(parseCliArgs(`--append-system-prompt "always think step by step" --chrome`)).toEqual({
flags: { "append-system-prompt": "always think step by step", chrome: null },
@@ -108,20 +80,6 @@ describe("parseCliArgs", () => {
});
});
- it("parses --max-budget-usd with numeric value", () => {
- expect(parseCliArgs("--chrome --max-budget-usd 5.00")).toEqual({
- flags: { chrome: null, "max-budget-usd": "5.00" },
- positionals: [],
- });
- });
-
- it("parses --effort=high syntax", () => {
- expect(parseCliArgs("--effort=high")).toEqual({
- flags: { effort: "high" },
- positionals: [],
- });
- });
-
it("parses --key=value mixed with boolean flags", () => {
expect(parseCliArgs("--chrome --model=claude-sonnet-4-6 --debug")).toEqual({
flags: { chrome: null, model: "claude-sonnet-4-6", debug: null },
diff --git a/packages/shared/src/composerInlineTokens.test.ts b/packages/shared/src/composerInlineTokens.test.ts
index 20700b06e60..c7e104b5d2f 100644
--- a/packages/shared/src/composerInlineTokens.test.ts
+++ b/packages/shared/src/composerInlineTokens.test.ts
@@ -31,22 +31,19 @@ describe("collectComposerInlineTokens", () => {
]);
});
- it.each(["$", "€", "£", "¥", "₹", "₩", "₿", "𑿝"])(
- "collects %s skill names that begin with a digit",
- (prefix) => {
- expect(collectComposerInlineTokens(`Use ${prefix}2spec next`)).toEqual([
- {
- type: "skill",
- value: "2spec",
- source: `${prefix}2spec`,
- start: 4,
- end: 9 + prefix.length,
- },
- ]);
- },
- );
+ it.each(["$", "€", "𑿝"])("collects %s skill names that begin with a digit", (prefix) => {
+ expect(collectComposerInlineTokens(`Use ${prefix}2spec next`)).toEqual([
+ {
+ type: "skill",
+ value: "2spec",
+ source: `${prefix}2spec`,
+ start: 4,
+ end: 9 + prefix.length,
+ },
+ ]);
+ });
- it.each(["€", "£", "¥", "₹", "₩", "₿", "𑿝"])("leaves %s currency amounts as text", (prefix) => {
+ it.each(["€", "𑿝"])("leaves %s currency amounts as text", (prefix) => {
expect(
collectComposerInlineTokens(
`${prefix}20 ${prefix}1_000 ${prefix}20k ${prefix}100M ${prefix}1e6 `,
diff --git a/packages/shared/src/composerTrigger.test.ts b/packages/shared/src/composerTrigger.test.ts
index c6fce0ffd9a..5cccaf1749e 100644
--- a/packages/shared/src/composerTrigger.test.ts
+++ b/packages/shared/src/composerTrigger.test.ts
@@ -43,18 +43,15 @@ describe("detectComposerTrigger", () => {
(text) => expect(detectComposerTrigger(text, text.length)).toBeNull(),
);
- it.each(["$", "€", "£", "¥", "₹", "₩", "₿", "𑿝"])(
- "detects %s skill prefixes and their source range",
- (prefix) => {
- const text = `Use ${prefix}review`;
- expect(detectComposerTrigger(text, text.length)).toEqual({
- kind: "skill",
- query: "review",
- rangeStart: 4,
- rangeEnd: text.length,
- });
- },
- );
+ it.each(["$", "€", "𑿝"])("detects %s skill prefixes and their source range", (prefix) => {
+ const text = `Use ${prefix}review`;
+ expect(detectComposerTrigger(text, text.length)).toEqual({
+ kind: "skill",
+ query: "review",
+ rangeStart: 4,
+ rangeEnd: text.length,
+ });
+ });
});
describe("serializeComposerFileLink", () => {
diff --git a/packages/shared/src/image.test.ts b/packages/shared/src/image.test.ts
index 1699c4e6534..00354f6e749 100644
--- a/packages/shared/src/image.test.ts
+++ b/packages/shared/src/image.test.ts
@@ -29,26 +29,10 @@ describe("imageMimeType", () => {
});
});
-describe("legacy attachments", () => {
- it("recognizes a picture that was sent before pictures were typed by content", () => {
- expect(imageMimeType({ name: "IMG_4996.PNG", mimeType: "application/octet-stream" })).toBe(
- "image/png",
- );
- expect(imageMimeType({ name: "1000000020.png", mimeType: "" })).toBe("image/png");
- });
-});
-
describe("a declared non-image type", () => {
it("wins over a misleading picture extension", () => {
expect(imageMimeType({ name: "report.png", mimeType: "application/pdf" })).toBeNull();
expect(imageMimeType({ name: "archive.jpg", mimeType: "application/zip" })).toBeNull();
expect(imageMimeType({ name: "clip.png", mimeType: "video/mp4" })).toBeNull();
});
-
- it("still falls back when the type is absent or generic", () => {
- expect(imageMimeType({ name: "IMG_4996.PNG", mimeType: "application/octet-stream" })).toBe(
- "image/png",
- );
- expect(imageMimeType({ name: "1000000020.png", mimeType: "" })).toBe("image/png");
- });
});
diff --git a/packages/shared/src/model.test.ts b/packages/shared/src/model.test.ts
index 7595ef47560..31a95bac234 100644
--- a/packages/shared/src/model.test.ts
+++ b/packages/shared/src/model.test.ts
@@ -164,22 +164,6 @@ describe("descriptor helpers", () => {
).toEqual([{ id: "fastMode", value: true }]);
});
- it("stores option selection arrays in model selections", () => {
- expect(
- createModelSelection(ProviderInstanceId.make("codex"), "gpt-5.4", [
- { id: "reasoningEffort", value: "high" },
- { id: "fastMode", value: true },
- ]),
- ).toEqual({
- instanceId: "codex",
- model: "gpt-5.4",
- options: [
- { id: "reasoningEffort", value: "high" },
- { id: "fastMode", value: true },
- ],
- });
- });
-
it("reads typed option selection values", () => {
const selection = createModelSelection(ProviderInstanceId.make("codex"), "gpt-5.4", [
{ id: "reasoningEffort", value: "high" },
diff --git a/packages/shared/src/previewViewport.test.ts b/packages/shared/src/previewViewport.test.ts
index 7a049376c50..3c01dd6dae1 100644
--- a/packages/shared/src/previewViewport.test.ts
+++ b/packages/shared/src/previewViewport.test.ts
@@ -1,6 +1,6 @@
import { describe, expect, it } from "vite-plus/test";
-import { PREVIEW_VIEWPORT_PRESETS, resolvePreviewViewport } from "./previewViewport.ts";
+import { resolvePreviewViewport } from "./previewViewport.ts";
describe("previewViewport", () => {
it("resolves fill and exact freeform viewports", () => {
@@ -32,26 +32,4 @@ describe("previewViewport", () => {
presetId: "iphone-12-pro",
});
});
-
- it("matches Chrome's standard device catalog ordering", () => {
- expect(PREVIEW_VIEWPORT_PRESETS.map((preset) => preset.label)).toEqual([
- "iPhone SE",
- "iPhone XR",
- "iPhone 12 Pro",
- "iPhone 14 Pro Max",
- "Pixel 7",
- "Samsung Galaxy S8+",
- "Samsung Galaxy S20 Ultra",
- "iPad Mini",
- "iPad Air",
- "iPad Pro",
- "Surface Pro 7",
- "Surface Duo",
- "Galaxy Z Fold 5",
- "Asus Zenbook Fold",
- "Samsung Galaxy A51/71",
- "Nest Hub",
- "Nest Hub Max",
- ]);
- });
});
diff --git a/packages/shared/src/terminalLabels.test.ts b/packages/shared/src/terminalLabels.test.ts
index 2b2d73418b1..d1a24eef55c 100644
--- a/packages/shared/src/terminalLabels.test.ts
+++ b/packages/shared/src/terminalLabels.test.ts
@@ -43,10 +43,6 @@ describe("nextTerminalId", () => {
expect(nextTerminalId([])).toBe(DEFAULT_TERMINAL_ID);
});
- it("allocates term-2 when only term-1 exists", () => {
- expect(nextTerminalId([DEFAULT_TERMINAL_ID])).toBe("term-2");
- });
-
it("skips over taken term-N slots", () => {
expect(nextTerminalId([DEFAULT_TERMINAL_ID, "term-2", "term-3"])).toBe("term-4");
expect(nextTerminalId([DEFAULT_TERMINAL_ID, "term-3"])).toBe("term-2");
diff --git a/scripts/build-desktop-artifact.test.ts b/scripts/build-desktop-artifact.test.ts
index aafe04677b8..abc616f2257 100644
--- a/scripts/build-desktop-artifact.test.ts
+++ b/scripts/build-desktop-artifact.test.ts
@@ -749,17 +749,6 @@ it.layer(NodeServices.layer)("build-desktop-artifact", (it) => {
}).pipe(Effect.provide(ConfigProvider.layer(ConfigProvider.fromEnv({ env: {} })))),
);
- it("excludes foreign node-pty prebuilds from macOS and Linux packages", () => {
- assert.deepStrictEqual(MAC_FILE_EXCLUSIONS, [
- "!**/node_modules/node-pty/prebuilds/win32-*/**/*",
- "!**/node_modules/node-pty/third_party/conpty/**/*",
- ]);
- assert.deepStrictEqual(LINUX_FILE_EXCLUSIONS, [
- ...MAC_FILE_EXCLUSIONS,
- "!**/node_modules/node-pty/prebuilds/darwin-*/**/*",
- ]);
- });
-
it("unpacks native binaries while keeping their JavaScript and metadata archived", () => {
for (const file of [
"node_modules/@napi-rs/keyring/keyring.win32-x64-msvc.node",
diff --git a/scripts/dev-runner.test.ts b/scripts/dev-runner.test.ts
index 83f75d574fa..3799fc63da8 100644
--- a/scripts/dev-runner.test.ts
+++ b/scripts/dev-runner.test.ts
@@ -20,7 +20,6 @@ import {
createDevRunnerEnv,
devPortProbeHosts,
findFirstAvailableOffset,
- getDevRunnerModeArgs,
isBrowserAllowedPort,
resolveModePortOffsets,
resolveOffset,
@@ -84,32 +83,6 @@ it.layer(NodeServices.layer)("dev-runner", (it) => {
}),
);
- describe("getDevRunnerModeArgs", () => {
- it.effect("lets Vite+ honor the desktop dev task graph", () =>
- Effect.sync(() => {
- assert.deepStrictEqual(getDevRunnerModeArgs("dev:desktop"), [
- "run",
- "--filter=@t3tools/desktop",
- "--filter=@t3tools/web",
- "dev",
- ]);
- }),
- );
-
- it.effect("places Vite+ run flags before the task name", () =>
- Effect.sync(() => {
- assert.deepStrictEqual(getDevRunnerModeArgs("dev"), [
- "run",
- "--filter=@t3tools/contracts",
- "--filter=@t3tools/web",
- "--filter=t3",
- "--parallel",
- "dev",
- ]);
- }),
- );
- });
-
describe("resolveOffset", () => {
it.effect("uses explicit T3CODE_PORT_OFFSET when provided", () =>
Effect.gen(function* () {
diff --git a/scripts/dev-runner.ts b/scripts/dev-runner.ts
index efedef4b4f3..b4b37afe3cb 100644
--- a/scripts/dev-runner.ts
+++ b/scripts/dev-runner.ts
@@ -92,10 +92,6 @@ type PortAvailabilityCheck<R = never> = (
const DEV_RUNNER_MODES = Object.keys(MODE_ARGS) as Array<DevMode>;
-export function getDevRunnerModeArgs(mode: DevMode): ReadonlyArray<string> {
- return MODE_ARGS[mode];
-}
-
export function isBrowserAllowedPort(port: number): boolean {
return !FETCH_BAD_PORTS.has(port);
}
diff --git a/scripts/lib/brand-assets.test.ts b/scripts/lib/brand-assets.test.ts
index 5403fe30e2a..74365f3ba12 100644
--- a/scripts/lib/brand-assets.test.ts
+++ b/scripts/lib/brand-assets.test.ts
@@ -2,8 +2,6 @@ import { describe, expect, it } from "vite-plus/test";
import {
BRAND_ASSET_PATHS,
- DEVELOPMENT_ICON_OVERRIDES,
- DEVELOPMENT_PUBLIC_ICON_OVERRIDES,
resolveWebAssetBrandForChannel,
resolveWebAssetBrandForPackageVersion,
resolveWebIconOverrides,
@@ -31,34 +29,6 @@ describe("brand-assets", () => {
]);
});
- it("maps server build web assets to development icons", () => {
- expect(DEVELOPMENT_ICON_OVERRIDES[0]).toEqual({
- sourceRelativePath: BRAND_ASSET_PATHS.developmentWebFaviconIco,
- targetRelativePath: "dist/client/favicon.ico",
- });
- });
-
- it("maps development web assets to the public splash and favicon files", () => {
- expect(DEVELOPMENT_PUBLIC_ICON_OVERRIDES).toEqual([
- {
- sourceRelativePath: BRAND_ASSET_PATHS.developmentWebFaviconIco,
- targetRelativePath: "apps/web/public/favicon.ico",
- },
- {
- sourceRelativePath: BRAND_ASSET_PATHS.developmentWebFavicon16Png,
- targetRelativePath: "apps/web/public/favicon-16x16.png",
- },
- {
- sourceRelativePath: BRAND_ASSET_PATHS.developmentWebFavicon32Png,
- targetRelativePath: "apps/web/public/favicon-32x32.png",
- },
- {
- sourceRelativePath: BRAND_ASSET_PATHS.developmentWebAppleTouchIconPng,
- targetRelativePath: "apps/web/public/apple-touch-icon.png",
- },
- ]);
- });
-
it("can target hosted web dist directly", () => {
expect(resolveWebIconOverrides("production", "apps/web/dist")).toContainEqual({
sourceRelativePath: BRAND_ASSET_PATHS.productionWebAppleTouchIconPng,
@@ -83,19 +53,4 @@ describe("brand-assets", () => {
expect(resolveWebAssetBrandForPackageVersion("0.0.29-nightly.20260723.882")).toBe("nightly");
expect(resolveWebAssetBrandForPackageVersion("0.0.29-preview.20260723.882")).toBe("nightly");
});
-
- it("keeps development, nightly, and production icon families separate", () => {
- expect([
- BRAND_ASSET_PATHS.developmentIconComposerProject,
- BRAND_ASSET_PATHS.nightlyIconComposerProject,
- BRAND_ASSET_PATHS.productionIconComposerProject,
- ]).toEqual([
- "assets/dev/app-icon.icon",
- "assets/nightly/app-icon.icon",
- "assets/prod/app-icon.icon",
- ]);
- expect(BRAND_ASSET_PATHS.developmentDesktopIconPng).toMatch(/^assets\/dev\/blueprint-/);
- expect(BRAND_ASSET_PATHS.nightlyMacIconPng).toMatch(/^assets\/nightly\/nightly-/);
- expect(BRAND_ASSET_PATHS.productionMacIconPng).toMatch(/^assets\/prod\/black-/);
- });
});
diff --git a/scripts/mobile-showcase.config.ts b/scripts/mobile-showcase.config.ts
index 10b32e76005..1d737b9fa4f 100644
--- a/scripts/mobile-showcase.config.ts
+++ b/scripts/mobile-showcase.config.ts
@@ -12,7 +12,7 @@ export type { ShowcaseScene };
export type ShowcaseAppearance = "light" | "dark";
export const SHOWCASE_THEMES = MOBILE_THEME_IDS;
-export const DEFAULT_SHOWCASE_THEME = MOBILE_DEFAULT_THEME_ID;
+const DEFAULT_SHOWCASE_THEME = MOBILE_DEFAULT_THEME_ID;
export type ShowcaseTheme = MobileThemeId;
export interface ShowcaseStoreAssetSpec {
diff --git a/scripts/mobile-showcase.test.ts b/scripts/mobile-showcase.test.ts
index 1b1446bb369..3a281529372 100644
--- a/scripts/mobile-showcase.test.ts
+++ b/scripts/mobile-showcase.test.ts
@@ -3,8 +3,7 @@ import * as NodePath from "node:path";
import { assert, it } from "@effect/vitest";
import { PNG } from "pngjs";
-import showcaseConfig, {
- DEFAULT_SHOWCASE_THEME,
+import {
resolveShowcaseAndroidAbi,
SHOWCASE_THEMES,
type ShowcaseConfig,
@@ -263,34 +262,6 @@ it("enforces store screenshot count limits", () => {
assert.throws(() => validateStoreAssetCount(googleSpec, 9, false), /allows at most 8/u);
});
-it("defaults every device to the app's own palette", () => {
- assert.equal(DEFAULT_SHOWCASE_THEME, "t3-code");
- assert.equal(
- showcaseConfig.devices.every((device) => device.theme === DEFAULT_SHOWCASE_THEME),
- true,
- );
-});
-
-it("configures every default device with an exact upload-ready store target", () => {
- assert.deepStrictEqual(
- showcaseConfig.devices.map((device) => [
- device.id,
- device.platform === "ios" ? (device.orientation ?? "portrait") : null,
- device.storeAsset.directory,
- device.storeAsset.width,
- device.storeAsset.height,
- ]),
- [
- ["iphone-6.9", "portrait", "apple/iphone-6.9", 1320, 2868],
- ["iphone-6.5", "portrait", "apple/iphone-6.5", 1284, 2778],
- ["ipad-13", "landscape", "apple/ipad-13", 2752, 2064],
- ["pixel", null, "google-play/phone", 1080, 1920],
- ["android-tablet-7", null, "google-play/tablet-7", 1080, 1920],
- ["android-tablet-10", null, "google-play/tablet-10", 1440, 2560],
- ],
- );
-});
-
it("selects a reachable LAN IPv4 address", () => {
assert.equal(
selectLanIpv4Address([