From 26ae666bc3a734a6c43e6d981c7ce6933956d165 Mon Sep 17 00:00:00 2001 From: YeonGyu-Kim Date: Sat, 14 Feb 2026 14:03:06 +0900 Subject: [PATCH] test(lsp): use explicit BDD markers in Windows spawn test --- src/tools/lsp/lsp-process.test.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/tools/lsp/lsp-process.test.ts b/src/tools/lsp/lsp-process.test.ts index 406a7f7f..a4ecbc0d 100644 --- a/src/tools/lsp/lsp-process.test.ts +++ b/src/tools/lsp/lsp-process.test.ts @@ -6,7 +6,7 @@ import { describe, expect, it, spyOn } from "bun:test" describe("spawnProcess", () => { it("proceeds to node spawn on Windows when command is available", async () => { - // #given + //#given const originalPlatform = process.platform const rootDir = mkdtempSync(join(tmpdir(), "lsp-process-test-")) const childProcess = await import("node:child_process") @@ -16,7 +16,7 @@ describe("spawnProcess", () => { Object.defineProperty(process, "platform", { value: "win32" }) const { spawnProcess } = await import("./lsp-process") - // #when + //#when let result: ReturnType | null = null expect(() => { result = spawnProcess(["node", "--version"], { @@ -25,7 +25,7 @@ describe("spawnProcess", () => { }) }).not.toThrow(/Binary 'node' not found/) - // #then + //#then expect(nodeSpawnSpy).toHaveBeenCalled() expect(result).not.toBeNull() } finally {