mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-12 20:40:44 +00:00
test: reuse lsp spawn runtime import
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import { describe, expect, it, vi, beforeEach } from "vitest";
|
||||
import { spawnLspServerProcess } from "./pi-bundle-lsp-runtime.js";
|
||||
|
||||
const resolveWindowsSpawnProgramMock = vi.hoisted(() => vi.fn());
|
||||
const materializeWindowsSpawnProgramMock = vi.hoisted(() => vi.fn());
|
||||
@@ -58,7 +59,6 @@ describe("spawnLspServerProcess Windows .cmd shim handling", () => {
|
||||
windowsHide: true,
|
||||
});
|
||||
|
||||
const { spawnLspServerProcess } = await import("./pi-bundle-lsp-runtime.js");
|
||||
spawnLspServerProcess({
|
||||
command: "typescript-language-server",
|
||||
args: ["--stdio"],
|
||||
@@ -85,7 +85,6 @@ describe("spawnLspServerProcess Windows .cmd shim handling", () => {
|
||||
windowsHide: true,
|
||||
});
|
||||
|
||||
const { spawnLspServerProcess } = await import("./pi-bundle-lsp-runtime.js");
|
||||
spawnLspServerProcess({ command: "typescript-language-server", args: ["--stdio"] });
|
||||
|
||||
const resolveParams = resolveWindowsSpawnProgramMock.mock.calls[0]?.[0] as
|
||||
@@ -107,7 +106,6 @@ describe("spawnLspServerProcess Windows .cmd shim handling", () => {
|
||||
windowsHide: true,
|
||||
});
|
||||
|
||||
const { spawnLspServerProcess } = await import("./pi-bundle-lsp-runtime.js");
|
||||
spawnLspServerProcess({ command: "typescript-language-server", args: ["--stdio"] });
|
||||
|
||||
const spawnCall = spawnMock.mock.calls[0];
|
||||
|
||||
Reference in New Issue
Block a user