From fd22def4c50b7a20bfec0e732cb8d81fd45471ed Mon Sep 17 00:00:00 2001 From: Pavel Feldman Date: Wed, 30 Apr 2025 08:07:54 -0700 Subject: [PATCH] chore: fix test harness, close the client (#312) --- tests/fixtures.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/fixtures.ts b/tests/fixtures.ts index 679187a..4027b2c 100644 --- a/tests/fixtures.ts +++ b/tests/fixtures.ts @@ -54,7 +54,7 @@ export const test = baseTest.extend({ startClient: async ({ mcpHeadless, mcpBrowser }, use, testInfo) => { const userDataDir = testInfo.outputPath('user-data-dir'); - let client: StdioClientTransport | undefined; + let client: Client | undefined; await use(async options => { const args = ['--user-data-dir', userDataDir]; @@ -73,7 +73,7 @@ export const test = baseTest.extend({ command: 'node', args: [path.join(__dirname, '../cli.js'), ...args], }); - const client = new Client({ name: 'test', version: '1.0.0' }); + client = new Client({ name: 'test', version: '1.0.0' }); await client.connect(transport); await client.ping(); return client;