The best way to control Claude Code, Codex and more from any computer or phone
test: remove duplicate client call-site coverage (#36776)
Co-authored-by: t3-code[bot] <269035359+t3-code[bot]@users.noreply.github.com> Co-authored-by: Julius Marminge <julius0216@outlook.com>
t3-code-bot[bot] committed
Nov 14, 2026 at 22:18 UTC
b1050d344962e1adfbe3309f880ae13c0fa98aad
2 files changed
-52
apps/mobile/src/state/queries.test.ts
deleted
-29
@@ -1,29 +0,0 @@
1
-import { threadPullRequestKeyOf } from "@t3tools/client-runtime/thread-pull-requests";
2
-import { filterComposerPullRequestMatches } from "@t3tools/shared/composerPullRequestMatches";
3
-import { expect, it } from "@effect/vitest";
4
-
5
-it("keeps an older exact PR in the mobile menu ahead of twenty newer substring matches", () => {
6
- const exact = {
7
- host: "github.com",
8
- number: 42,
9
- projectId: "project",
10
- repository: "example/repo",
11
- updatedAt: "2025-01-01",
12
- };
13
- const recent = Array.from({ length: 25 }, (_, index) => ({
14
- ...exact,
15
- number: 4200 + index,
16
- updatedAt: "2026-01-01",
17
- }));
18
- const matches = filterComposerPullRequestMatches({
19
- keyOf: threadPullRequestKeyOf,
20
- entries: [exact, ...recent, exact],
21
- projectId: exact.projectId,
22
- repository: exact.repository,
23
- query: "42",
24
- limit: 20,
25
- });
26
- expect(matches).toHaveLength(20);
27
- expect(matches[0]).toEqual(exact);
28
- expect(matches.filter((entry) => entry.number === 42)).toHaveLength(1);
29
-});
apps/web/src/components/ChatView.logic.test.ts
-23
@@ -1,4 +1,3 @@
1
-import { shouldShowOpenInPicker } from "./chat/OpenInPicker.logic";
1
import {
2
boundAttachmentIds,
3
buildExpiredTerminalContextToastCopy,
@@ -1500,25 +1499,3 @@ describe("deriveThreadPendingBackgroundTasks", () => {
1499
).toEqual([{ taskId: "task-1", kind: "background_task" }]);
1500
});
1501
});
1503
-
1504
-describe("Open in for the host environment", () => {
1505
- it("shows both local environments when the primary has a separate WSL home", () => {
1506
- const primaryEnvironmentId = EnvironmentId.make("wsl");
1507
- const hostEnvironmentId = EnvironmentId.make("host");
1508
- for (const [activeThreadEnvironmentId, visible] of [
1509
- [primaryEnvironmentId, true],
1510
- [hostEnvironmentId, true],
1511
- [EnvironmentId.make("other"), false],
1512
- ] as const) {
1513
- expect(
1514
- shouldShowOpenInPicker({
1515
- activeProjectName: "Project",
1516
- activeThreadEnvironmentId,
1517
- primaryEnvironmentId,
1518
- hostEnvironmentId,
1519
- remoteOpenMode: "local-exec",
1520
- }),
1521
- ).toBe(visible);
1522
- }
1523
- });
1524
-});