MCPcopy Create free account
hub / github.com/ChromeDevTools/chrome-devtools-mcp / createContext

Function createContext

tests/ToolHandler.test.ts:652–659  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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(

Callers 1

Calls 2

createMockMcpContextFunction · 0.85
getMockBrowserFunction · 0.85

Tested by

no test coverage detected