From 0ffb7b3d823056ae066e0a55f884179795854345 Mon Sep 17 00:00:00 2001 From: Gareth Jones Date: Thu, 29 Jan 2026 22:09:53 -0800 Subject: [PATCH] chore: sync server.test.ts with upstream main Co-Authored-By: Claude Opus 4.5 --- src/canvas-host/server.test.ts | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/src/canvas-host/server.test.ts b/src/canvas-host/server.test.ts index 07fcdf8c4..341927770 100644 --- a/src/canvas-host/server.test.ts +++ b/src/canvas-host/server.test.ts @@ -3,22 +3,14 @@ import { createServer } from "node:http"; import type { AddressInfo } from "node:net"; import os from "node:os"; import path from "node:path"; -import { beforeEach, describe, expect, it, vi } from "vitest"; +import { describe, expect, it, vi } from "vitest"; import { WebSocket } from "ws"; import { rawDataToString } from "../infra/ws.js"; import { defaultRuntime } from "../runtime.js"; -import { - CANVAS_HOST_PATH, - CANVAS_WS_PATH, - injectCanvasLiveReload, - resetA2uiCache, -} from "./a2ui.js"; +import { CANVAS_HOST_PATH, CANVAS_WS_PATH, injectCanvasLiveReload } from "./a2ui.js"; import { createCanvasHostHandler, startCanvasHost } from "./server.js"; describe("canvas host", () => { - beforeEach(() => { - resetA2uiCache(); - }); it("injects live reload script", () => { const out = injectCanvasLiveReload("Hello"); expect(out).toContain(CANVAS_WS_PATH);