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

Function createContext

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

Source from the content-addressed store, hash-verified

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

Callers 1

Calls 2

createMockMcpContextFunction · 0.85
getMockBrowserFunction · 0.85

Tested by

no test coverage detected