Addressing comment on PR #1861 #305
Annotations
3 errors
|
test/mcpfilepath.test.ts > MCP Configuration File Path Support > should reject old format without root mcpAgentServers field:
packages/core/test/mcpfilepath.test.ts#L238
AssertionError: promise resolved "{ id: 'test-script', …(5) }" instead of rejecting
- Expected
+ Received
- Error {
- "message": "rejected promise",
+ {
+ "defTools": [],
+ "filename": "/tmp/mcp-test/test-script.genai.mts",
+ "id": "test-script",
+ "jsSource": "
+ script({
+ title: \"Test Script with Old Format MCP Agent File\",
+ mcpAgentServers: \"./mcp-agent-config-old.json\"
+ })
+
+ $`Hello world`
+ ",
+ "mcpAgentServers": "./mcp-agent-config-old.json",
+ "title": "Test Script with Old Format MCP Agent File",
}
❯ test/mcpfilepath.test.ts:238:62
|
|
test/mcpfilepath.test.ts > MCP Configuration File Path Support > should reject old format without root mcpServers field:
packages/core/test/mcpfilepath.test.ts#L207
AssertionError: promise resolved "{ id: 'test-script', …(5) }" instead of rejecting
- Expected
+ Received
- Error {
- "message": "rejected promise",
+ {
+ "defTools": [],
+ "filename": "/tmp/mcp-test/test-script.genai.mts",
+ "id": "test-script",
+ "jsSource": "
+ script({
+ title: \"Test Script with Old Format MCP File\",
+ mcpServers: \"./mcp-config-old.json\"
+ })
+
+ $`Hello world`
+ ",
+ "mcpServers": "./mcp-config-old.json",
+ "title": "Test Script with Old Format MCP File",
}
❯ test/mcpfilepath.test.ts:207:62
|
|
test/mcpfilepath.test.ts > MCP Configuration File Path Support > should handle non-existent config file gracefully:
packages/core/test/mcpfilepath.test.ts#L154
AssertionError: promise resolved "{ id: 'test-script', …(5) }" instead of rejecting
- Expected
+ Received
- Error {
- "message": "rejected promise",
+ {
+ "defTools": [],
+ "filename": "/tmp/mcp-test/test-script.genai.mts",
+ "id": "test-script",
+ "jsSource": "
+ script({
+ title: \"Test Script with Non-existent MCP File\",
+ mcpServers: \"./non-existent-config.json\"
+ })
+
+ $`Hello world`
+ ",
+ "mcpServers": "./non-existent-config.json",
+ "title": "Test Script with Non-existent MCP File",
}
❯ test/mcpfilepath.test.ts:154:62
|
Artifacts
Produced during runtime
| Name | Size | Digest | |
|---|---|---|---|
|
results
Expired
|
2.95 KB |
sha256:e88f7fd8ef9a31b467a7ec45b5eb6bce1933fb97f2a8bd6b81ac60eeb8d774c7
|
|