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

Function createHandlerMocks

tests/mocks.ts:591–602  ·  view source on GitHub ↗
(options: Partial<ParsedArguments> = {})

Source from the content-addressed store, hash-verified

589 * const {page, context, response} = createHandlerMocks();
590 */
591export function createHandlerMocks(options: Partial<ParsedArguments> = {}): {
592 page: MockMcpPage;
593 context: MockMcpContext;
594 response: MockMcpResponse;
595 args: ParsedArguments;
596} {
597 const page = createMockMcpPage();
598 const context = createMockMcpContext({selectedPage: page});
599 const response = createMockMcpResponse();
600 const args = createMockParsedArguments(options);
601 return {page, context, response, args};
602}
603
604export function createMockRunnerResult(
605 lhrOverrides: Partial<Result> = {},

Callers 15

input.test.tsFile · 0.85
network.test.tsFile · 0.85
lighthouse.test.tsFile · 0.85
screenshot.test.tsFile · 0.85
createScreencastMocksFunction · 0.85
script.test.tsFile · 0.85
css.test.tsFile · 0.85
webauthn.test.tsFile · 0.85
emulation.test.tsFile · 0.85

Calls 4

createMockMcpPageFunction · 0.85
createMockMcpContextFunction · 0.85
createMockMcpResponseFunction · 0.85

Tested by 1

createScreencastMocksFunction · 0.68