Skip to content

Commit f1e68d3

Browse files
committed
fix: modelcontextprotocol#780 onerror and other listener not remove after client close (stdio)
1 parent 9e7f4ae commit f1e68d3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/client/test/client/cross-spawn.test.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@ import type { ChildProcess } from 'node:child_process';
22

33
import type { JSONRPCMessage } from '@modelcontextprotocol/core';
44
import spawn from 'cross-spawn';
5-
import type { Mock, MockedFunction } from 'vitest';
5+
import type { Mock, MockedFunction} from 'vitest';
6+
import { vi } from 'vitest';
67

78
import { getDefaultEnvironment, StdioClientTransport } from '../../src/client/stdio.js';
89

0 commit comments

Comments
 (0)