()
| 257 | }); |
| 258 | |
| 259 | async function initializeServer(): Promise<string> { |
| 260 | const response = await sendPostRequest(baseUrl, TEST_MESSAGES.initialize); |
| 261 | |
| 262 | expect(response.status).toBe(200); |
| 263 | const newSessionId = response.headers.get('mcp-session-id'); |
| 264 | expect(newSessionId).toBeDefined(); |
| 265 | return newSessionId as string; |
| 266 | } |
| 267 | |
| 268 | it('should initialize server and generate session ID', async () => { |
| 269 | const response = await sendPostRequest(baseUrl, TEST_MESSAGES.initialize); |
no test coverage detected
searching dependent graphs…