Skip to content

Commit b75c4ac

Browse files
committed
test(connector-mcp): keep the absolute-path control's args mutable for McpTransport
Claude-Session: https://claude.ai/code/session_01WYYhVJ78u7PhwFViWo1EmQ Co-authored-by: Claude <noreply@anthropic.com>
1 parent 418a8fe commit b75c4ac

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎packages/connectors/connector-mcp/src/mcp-stdio-cwd.test.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ describe('stdio transport cwd — real spawns through the SDK (#22423)', () => {
101101
});
102102

103103
it('control: an absolute command and an absolute script are unaffected by cwd', async () => {
104-
const absolute = { kind: 'stdio', command: process.execPath, args: [join(APP, 'scripts', 'server.mjs')] } as const;
104+
const absolute = { kind: 'stdio' as const, command: process.execPath, args: [join(APP, 'scripts', 'server.mjs')] };
105105
await expect(childCwd({ ...absolute, cwd: ELSEWHERE })).resolves.toBe(ELSEWHERE);
106106
await expect(childCwd({ ...absolute })).resolves.toBe(realpathSync(process.cwd()));
107107
});

0 commit comments

Comments
 (0)