Skip to content

Commit 2773229

Browse files
authored
test: remove redundant and stale tests (#6267)
1 parent d484735 commit 2773229

11 files changed

Lines changed: 0 additions & 875 deletions

File tree

apps/desktop/src/backend/tailscaleEndpointProvider.test.ts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import { HttpClient } from "effect/unstable/http";
55
import { ChildProcessSpawner } from "effect/unstable/process";
66

77
import {
8-
isTailscaleIpv4Address,
98
parseTailscaleMagicDnsName,
109
resolveTailscaleAdvertisedEndpoints,
1110
} from "./tailscaleEndpointProvider.ts";
@@ -22,13 +21,6 @@ const unusedTailscaleExternalServicesLayer = Layer.mergeAll(
2221
);
2322

2423
describe("tailscale endpoint provider", () => {
25-
it("detects Tailnet IPv4 addresses", () => {
26-
assert.equal(isTailscaleIpv4Address("100.64.0.1"), true);
27-
assert.equal(isTailscaleIpv4Address("100.127.255.254"), true);
28-
assert.equal(isTailscaleIpv4Address("100.128.0.1"), false);
29-
assert.equal(isTailscaleIpv4Address("192.168.1.44"), false);
30-
});
31-
3224
it.effect("parses MagicDNS names from tailscale status", () =>
3325
Effect.gen(function* () {
3426
const dnsName = yield* parseTailscaleMagicDnsName(

apps/desktop/src/preview/PickPreload.test.ts

Lines changed: 0 additions & 86 deletions
This file was deleted.

apps/mobile/src/features/terminal/terminalMenu.test.ts

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ import { getTerminalLabel } from "@t3tools/shared/terminalLabels";
88
import {
99
buildTerminalMenuSessions,
1010
nextOpenTerminalId,
11-
nextTerminalId,
1211
previousLiveTerminalId,
1312
resolveProjectScriptTerminalId,
1413
type TerminalMenuSession,
@@ -125,16 +124,6 @@ describe("buildTerminalMenuSessions", () => {
125124
});
126125
});
127126

128-
describe("nextTerminalId", () => {
129-
it("uses the primary id when no terminals are listed yet", () => {
130-
expect(nextTerminalId([])).toBe(DEFAULT_TERMINAL_ID);
131-
});
132-
133-
it("allocates term-2 when only the primary shell exists", () => {
134-
expect(nextTerminalId([DEFAULT_TERMINAL_ID])).toBe("term-2");
135-
});
136-
});
137-
138127
describe("nextOpenTerminalId", () => {
139128
it("matches nextTerminalId when not on a terminal route", () => {
140129
expect(nextOpenTerminalId({ listedTerminalIds: [] })).toBe(DEFAULT_TERMINAL_ID);

apps/server/src/orchestration/commandInvariants.test.ts

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ import * as Effect from "effect/Effect";
1414
import {
1515
findThreadById,
1616
listThreadsByProjectId,
17-
requireNonNegativeInteger,
1817
requireThread,
1918
requireThreadAbsent,
2019
} from "./commandInvariants.ts";
@@ -200,24 +199,4 @@ describe("commandInvariants", () => {
200199
),
201200
).rejects.toThrow("already exists");
202201
});
203-
204-
it("requires non-negative integers", async () => {
205-
await Effect.runPromise(
206-
requireNonNegativeInteger({
207-
commandType: "thread.checkpoint.revert",
208-
field: "turnCount",
209-
value: 0,
210-
}),
211-
);
212-
213-
await expect(
214-
Effect.runPromise(
215-
requireNonNegativeInteger({
216-
commandType: "thread.checkpoint.revert",
217-
field: "turnCount",
218-
value: -1,
219-
}),
220-
),
221-
).rejects.toThrow("greater than or equal to 0");
222-
});
223202
});

apps/server/src/provider/Layers/ProviderRegistry.test.ts

Lines changed: 0 additions & 66 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,7 @@ import { ProviderInstanceRegistryHydrationLive } from "./ProviderInstanceRegistr
4040
import {
4141
haveProvidersChanged,
4242
mergeProviderSnapshot,
43-
mergeProviderSnapshots,
4443
ProviderRegistryLive,
45-
selectProvidersByKind,
4644
} from "./ProviderRegistry.ts";
4745
import * as ServerConfig from "../../config.ts";
4846
import * as ServerSettingsModule from "../../serverSettings.ts";
@@ -893,70 +891,6 @@ it.layer(Layer.mergeAll(NodeServices.layer, ServerSettingsModule.layerTest(), Te
893891
}),
894892
);
895893

896-
it("persists merged provider snapshots for the providers that were refreshed", () => {
897-
const previousProviders = [
898-
{
899-
instanceId: ProviderInstanceId.make("cursor"),
900-
driver: ProviderDriverKind.make("cursor"),
901-
status: "ready",
902-
enabled: true,
903-
installed: true,
904-
auth: { status: "authenticated" },
905-
checkedAt: "2026-04-14T00:00:00.000Z",
906-
version: "2026.04.09-f2b0fcd",
907-
models: [
908-
{
909-
slug: "claude-opus-4-6",
910-
name: "Opus 4.6",
911-
isCustom: false,
912-
capabilities: createModelCapabilities({
913-
optionDescriptors: [
914-
selectDescriptor("reasoning", "Reasoning", [
915-
{ id: "high", label: "High", isDefault: true },
916-
]),
917-
booleanDescriptor("fastMode", "Fast Mode"),
918-
booleanDescriptor("thinking", "Thinking"),
919-
],
920-
}),
921-
},
922-
],
923-
slashCommands: [],
924-
skills: [],
925-
},
926-
{
927-
instanceId: ProviderInstanceId.make("codex"),
928-
driver: ProviderDriverKind.make("codex"),
929-
status: "ready",
930-
enabled: true,
931-
installed: true,
932-
auth: { status: "authenticated" },
933-
checkedAt: "2026-04-14T00:00:00.000Z",
934-
version: "1.0.0",
935-
models: [],
936-
slashCommands: [],
937-
skills: [],
938-
},
939-
] as const satisfies ReadonlyArray<ServerProvider>;
940-
const refreshedCursor = {
941-
...previousProviders[0],
942-
checkedAt: "2026-04-14T00:01:00.000Z",
943-
models: [],
944-
} satisfies ServerProvider;
945-
946-
const mergedProviders = mergeProviderSnapshots(previousProviders, [refreshedCursor]);
947-
const persistedProviders = selectProvidersByKind(
948-
mergedProviders,
949-
new Set([ProviderDriverKind.make("cursor")]),
950-
);
951-
952-
assert.deepStrictEqual(persistedProviders, [
953-
{
954-
...refreshedCursor,
955-
models: [...previousProviders[0].models],
956-
},
957-
]);
958-
});
959-
960894
it.effect("persists the merged snapshot when a live update has empty models", () =>
961895
Effect.gen(function* () {
962896
const cursorDriver = ProviderDriverKind.make("cursor");

apps/web/src/historyBootstrap.test.ts

Lines changed: 0 additions & 139 deletions
This file was deleted.

0 commit comments

Comments
 (0)