Skip to content
Prev Previous commit
Next Next commit
test: add ut of chile process pod in StdioClientTransport
  • Loading branch information
XiaofuHuang committed May 6, 2025
commit 7e134f259edbc0e0af897afc4c52154351e208d4
9 changes: 9 additions & 0 deletions src/client/stdio.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,3 +59,12 @@ test("should read messages", async () => {

await client.close();
});

test("should return child process pid", async () => {
const client = new StdioClientTransport(serverParameters);

await client.start();
expect(client.pid).toBeDefined();
await client.close();
expect(client.pid).toBeUndefined();
});