From a1f208f1e6bb44e90ff97221fe839a4eeee26fdf Mon Sep 17 00:00:00 2001 From: Julius Marminge Date: Thu, 26 Feb 2026 21:01:54 -0800 Subject: [PATCH] Provide NodeServices layer in wsServer bootstrap test - inject `NodeServices.layer` into sqlite persistence setup in `wsServer.test.ts` - fixes test runtime dependencies for existing-state bootstrap path --- apps/server/src/wsServer.test.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/server/src/wsServer.test.ts b/apps/server/src/wsServer.test.ts index e0c91312a02109c1b7e96a473bfe6c95dc59af02..d6ba9229b58947cfb23699728fb14e6934b92f2c 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; + ).pipe(Layer.provide(NodeServices.layer)) as unknown as Layer.Layer; const cwd = "/test/bootstrap-existing"; server = await createTestServer({ -- 2.54.0