Skip to content

Commit 0b51252

Browse files
committed
test: rename client transport variables for clarity
1 parent 02f1f88 commit 0b51252

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

vitest.setup.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { Client } from '@modelcontextprotocol/sdk/client/index.js'
33
import { StreamableHTTPClientTransport } from '@modelcontextprotocol/sdk/client/streamableHttp.js'
44
import { StdioClientTransport } from '@modelcontextprotocol/sdk/client/stdio.js'
55

6-
const stdioClient = new StdioClientTransport({
6+
const stdioClientTransport = new StdioClientTransport({
77
command: 'c8',
88
args: ['--reporter=lcov', '--reporter=text', 'tsx', './src/index.ts'],
99
env: {
@@ -13,14 +13,14 @@ const stdioClient = new StdioClientTransport({
1313
})
1414

1515
const baseUrl = new URL('http://localhost:8401/mcp')
16-
const streamableClient = new StreamableHTTPClientTransport(
16+
const streamableClientTransport = new StreamableHTTPClientTransport(
1717
new URL(baseUrl)
1818
)
1919
const client = new Client({
2020
name: 'test-mcp-client',
2121
version: '1.0.0',
2222
})
23-
await client.connect(stdioClient)
24-
await client.connect(streamableClient)
23+
await client.connect(stdioClientTransport)
24+
await client.connect(streamableClientTransport)
2525

2626
global.client = client

0 commit comments

Comments
 (0)