Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions apps/server/src/cli/connect.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import * as NodeHttp from "node:http";
import * as NodeCrypto from "@effect/platform-node/NodeCrypto";
import * as NodeServices from "@effect/platform-node/NodeServices";
import * as NetService from "@t3tools/shared/Net";
import { ensureProductHome } from "@t3tools/shared/productHome";
import * as RelayClient from "@t3tools/shared/relayClient";
import { assert, it } from "@effect/vitest";
import * as ConfigProvider from "effect/ConfigProvider";
Expand Down Expand Up @@ -88,6 +89,7 @@ it.layer(Layer.mergeAll(NodeServices.layer, NodeCrypto.layer, NetService.layer))

const fs = yield* FileSystem.FileSystem;
const baseDir = yield* fs.makeTempDirectoryScoped({ prefix: "t3-connect-unlink-test-" });
yield* Effect.sync(() => ensureProductHome(baseDir));
const state = yield* makePersistedServerRuntimeState({
config: { host: "127.0.0.1", devUrl: undefined },
port: address.port,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,11 @@ describe.each(["repository", "folder", "destination"] as const)("add-project %s"
});

it("keeps the caret in place when an edit briefly makes the folder path not a path", async () => {
await using _screen = await render(<CommandPalette>{null}</CommandPalette>);
await using _screen = await render(
<VoiceProvider>
<CommandPalette>{null}</CommandPalette>
</VoiceProvider>,
);
await act(() => openCommandPalette({ open: "add-project" }));
await page.getByText("Local folder", { exact: true }).click();
const input = () => page.getByRole("combobox");
Expand Down
3 changes: 2 additions & 1 deletion apps/web/src/hooks/useHandleNewThread.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,8 @@ vi.mock("@t3tools/client-runtime/environment", () => ({
scopeProjectRef: (environmentId: string, projectId: string) => ({ environmentId, projectId }),
scopeThreadRef: (environmentId: string, threadId: string) => ({ environmentId, threadId }),
}));
vi.mock("@t3tools/contracts", () => ({
vi.mock("@t3tools/contracts", async (original) => ({
...(await original<typeof import("@t3tools/contracts")>()),
DEFAULT_RUNTIME_MODE: "default",
DEFAULT_SERVER_SETTINGS: {},
}));
Expand Down
Loading