()
| 650 | } |
| 651 | |
| 652 | function createContext() { |
| 653 | const mockContext = createMockMcpContext(); |
| 654 | const mockProcess = sinon.createStubInstance(ChildProcess); |
| 655 | mockContext.ensureBrowser.resolves( |
| 656 | getMockBrowser({process: mockProcess}), |
| 657 | ); |
| 658 | return mockContext; |
| 659 | } |
| 660 | |
| 661 | function createHandler(tool: AnyToolDefinition, mockContext: McpContext) { |
| 662 | return new ToolHandler( |
no test coverage detected