Skip to content

Open-source Grok Bot alternative for named AI teammates. Local-first desktop, web, and mobile clients with per-bot tools, instructions, and memory. Independent fork of T3 Code.

Provide NodeServices layer in wsServer bootstrap test

Julius Marmingea1f208f1e6bb
diff --git a/apps/server/src/wsServer.test.ts b/apps/server/src/wsServer.test.ts
index e0c91312a..d6ba9229b 100644
--- a/apps/server/src/wsServer.test.ts
+++ b/apps/server/src/wsServer.test.ts
@@ -3,6 +3,7 @@ import fs from "node:fs";
import os from "node:os";
import path from "node:path";
+import * as NodeServices from "@effect/platform-node/NodeServices";
import { Effect, Exit, Layer, PubSub, Scope, Stream } from "effect";
import { describe, expect, it, afterEach, vi } from "vitest";
import { createServer } from "./wsServer";
@@ -510,7 +511,7 @@ describe("WebSocket Server", () => {
const stateDir = makeTempDir("t3code-state-bootstrap-existing-");
const persistenceLayer = makeSqlitePersistenceLive(
path.join(stateDir, "state.sqlite"),
- ) as unknown as Layer.Layer<SqlClient.SqlClient, never>;
+ ).pipe(Layer.provide(NodeServices.layer)) as unknown as Layer.Layer<SqlClient.SqlClient, never>;
const cwd = "/test/bootstrap-existing";
server = await createTestServer({