feat: improve stdio test Windows compatibility and refactor command logic

This commit is contained in:
HoberMin 2025-04-08 09:27:19 +09:00 • committed by Felix Weinberger
commit a7dc125850
No known key found for this signature in database

View file

@ -1,9 +1,7 @@
import { JSONRPCMessage } from "../types.js";
import { StdioClientTransport, StdioServerParameters } from "./stdio.js";
import { StdioClientTransport, getDefaultServerParameters } from "./stdio.js";
const serverParameters: StdioServerParameters = {
command: "/usr/bin/tee",
};
const serverParameters = getDefaultServerParameters();
test("should start then close cleanly", async () => {
const client = new StdioClientTransport(serverParameters);