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

Function createMockServerConfig

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

Source from the content-addressed store, hash-verified

1413}
1414
1415export function createMockServerConfig(
1416 options: Partial<ParsedArguments> = {},
1417): ServerConfig {
1418 const definedOptions = stripUndefined(options);
1419 return new ServerConfig({
1420 cliArgs: definedOptions,
1421 fileArgs: {},
1422 configPath: definedOptions.config,
1423 resolved: createMockParsedArguments(definedOptions),
1424 });
1425}
1426
1427export function createMockHeapSnapshotNode(
1428 options: Partial<DevTools.HeapSnapshotModel.HeapSnapshotModel.Node> = {},

Callers 15

McpPage.test.tsFile · 0.85
createMcpPageFunction · 0.85
createPageFunction · 0.85
createWebAuthnPageFunction · 0.85
createHandedOverPageFunction · 0.85
testIncludesWebmcpToolsFunction · 0.85
createContextFunction · 0.85
withMcpContextFunction · 0.85

Calls 2

stripUndefinedFunction · 0.85

Tested by 12

createMcpPageFunction · 0.68
createPageFunction · 0.68
createWebAuthnPageFunction · 0.68
createHandedOverPageFunction · 0.68
testIncludesWebmcpToolsFunction · 0.68
createContextFunction · 0.68
createMockContextFunction · 0.68
updateConfigFunction · 0.68
createLazyContextFunction · 0.68