Skip to content

Commit 7e134f2

Browse files
committed
test: add ut of chile process pod in StdioClientTransport
1 parent 59fb484 commit 7e134f2

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/client/stdio.test.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,3 +59,12 @@ test("should read messages", async () => {
5959

6060
await client.close();
6161
});
62+
63+
test("should return child process pid", async () => {
64+
const client = new StdioClientTransport(serverParameters);
65+
66+
await client.start();
67+
expect(client.pid).toBeDefined();
68+
await client.close();
69+
expect(client.pid).toBeUndefined();
70+
});

0 commit comments

Comments
 (0)