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

Function createHandlerMocks

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

Source from the content-addressed store, hash-verified

612 * const {page, context, response} = createHandlerMocks();
613 */
614export function createHandlerMocks(options: Partial<ParsedArguments> = {}): {
615 page: MockMcpPage;
616 context: MockMcpContext;
617 response: MockMcpResponse;
618 args: ParsedArguments;
619} {
620 const page = createMockMcpPage();
621 const context = createMockMcpContext({selectedPage: page});
622 const response = createMockMcpResponse();
623 const args = createMockParsedArguments(options);
624 return {page, context, response, args};
625}
626
627export function createMockRunnerResult(
628 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