Clean up CLI tests and add config parsing tests

- Remove web client launch tests from CLI test suite
- Add CLI-mode tests for SSE and streamable-http configs
- Keep only tests that use --cli flag as intended
This commit is contained in:
Felix Weinberger 2025-08-05 13:31:40 +01:00
commit 63193ec007
No known key found for this signature in database

View file

@ -744,26 +744,28 @@ async function runTests() {
"tools/list", "tools/list",
); );
// Test 26: Config with SSE transport type (should pass transport to client) // Test 26: Config with SSE transport type (CLI mode)
await runBasicTest( await runBasicTest(
"config_sse_type", "config_sse_type_cli",
"--config", "--config",
sseConfigPath, sseConfigPath,
"--server", "--server",
"test-sse", "test-sse",
"echo", "--cli",
"test", "--method",
"tools/list",
); );
// Test 27: Config with streamable-http transport type // Test 27: Config with streamable-http transport type (CLI mode)
await runBasicTest( await runBasicTest(
"config_http_type", "config_http_type_cli",
"--config", "--config",
httpConfigPath, httpConfigPath,
"--server", "--server",
"test-http", "test-http",
"echo", "--cli",
"test", "--method",
"tools/list",
); );
// Test 28: Legacy config without type field (backward compatibility) // Test 28: Legacy config without type field (backward compatibility)