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

Function createMockServerConfig

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

Source from the content-addressed store, hash-verified

1359}
1360
1361export function createMockServerConfig(
1362 options: Partial<ParsedArguments> = {},
1363): ServerConfig {
1364 const definedOptions = stripUndefined(options);
1365 return new ServerConfig({
1366 cliArgs: definedOptions,
1367 fileArgs: {},
1368 configPath: definedOptions.config,
1369 resolved: createMockParsedArguments(definedOptions),
1370 });
1371}
1372
1373export function createMockHeapSnapshotNode(
1374 options: Partial<DevTools.HeapSnapshotModel.HeapSnapshotModel.Node> = {},

Callers 15

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

Calls 2

stripUndefinedFunction · 0.85

Tested by 11

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