test: add ut of chile process pod in StdioClientTransport
This commit is contained in:
parent
59fb4845d6
commit
7e134f259e
1 changed files with 9 additions and 0 deletions
|
|
@ -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();
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue