Skip to content

Commit 63193ec

Browse files
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
1 parent b6dc2ce commit 63193ec

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

cli/scripts/cli-tests.js

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -744,26 +744,28 @@ async function runTests() {
744744
"tools/list",
745745
);
746746

747-
// Test 26: Config with SSE transport type (should pass transport to client)
747+
// Test 26: Config with SSE transport type (CLI mode)
748748
await runBasicTest(
749-
"config_sse_type",
749+
"config_sse_type_cli",
750750
"--config",
751751
sseConfigPath,
752752
"--server",
753753
"test-sse",
754-
"echo",
755-
"test",
754+
"--cli",
755+
"--method",
756+
"tools/list",
756757
);
757758

758-
// Test 27: Config with streamable-http transport type
759+
// Test 27: Config with streamable-http transport type (CLI mode)
759760
await runBasicTest(
760-
"config_http_type",
761+
"config_http_type_cli",
761762
"--config",
762763
httpConfigPath,
763764
"--server",
764765
"test-http",
765-
"echo",
766-
"test",
766+
"--cli",
767+
"--method",
768+
"tools/list",
767769
);
768770

769771
// Test 28: Legacy config without type field (backward compatibility)

0 commit comments

Comments
 (0)