fix: change pid return type from undefined to be null

This commit is contained in:
root 2025-05-06 10:13:09 +00:00
commit d154914db7

View file

@ -64,7 +64,7 @@ test("should return child process pid", async () => {
const client = new StdioClientTransport(serverParameters);
await client.start();
expect(client.pid).toBeDefined();
expect(client.pid).not.toBeNull();
await client.close();
expect(client.pid).toBeUndefined();
expect(client.pid).toBeNull();
});