From cdfbd6e7eb5039f78622b4b589c9e952ca0cdb28 Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Sat, 3 Jan 2026 19:36:48 +0100 Subject: [PATCH] test(gateway): align config constants in auth test --- src/gateway/server.auth.test.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/gateway/server.auth.test.ts b/src/gateway/server.auth.test.ts index 92027a540..782e27a42 100644 --- a/src/gateway/server.auth.test.ts +++ b/src/gateway/server.auth.test.ts @@ -1,6 +1,5 @@ import { describe, expect, test } from "vitest"; import { WebSocket } from "ws"; -import { CONFIG_PATH_CLAWDIS, STATE_DIR_CLAWDIS } from "../config/config.js"; import { PROTOCOL_VERSION } from "./protocol/index.js"; import { connectReq, @@ -33,6 +32,9 @@ describe("gateway server auth/connect", () => { ); test("connect (req) handshake returns hello-ok payload", async () => { + const { CONFIG_PATH_CLAWDIS, STATE_DIR_CLAWDIS } = await import( + "../config/config.js" + ); const port = await getFreePort(); const server = await startGatewayServer(port); const ws = new WebSocket(`ws://127.0.0.1:${port}`);