MCPcopy
hub / github.com/ChromeDevTools/chrome-devtools-mcp / getRoute

Method getRoute

tests/server.ts:44–49  ·  view source on GitHub ↗
(path: string)

Source from the content-addressed store, hash-verified

42 }
43
44 getRoute(path: string) {
45 if (!this.#routes[path]) {
46 throw new Error(`Route ${path} was not setup.`);
47 }
48 return `${this.baseUrl}${path}`;
49 }
50
51 addHtmlRoute(path: string, htmlContent: string) {
52 if (this.#routes[path]) {

Callers 12

runSingleScenarioFunction · 0.80
browser.test.tsFile · 0.80
input.test.tsFile · 0.80
network.test.tsFile · 0.80
lighthouse.test.tsFile · 0.80
script.test.tsFile · 0.80
emulation.test.tsFile · 0.80
console.test.tsFile · 0.80
extensions.test.tsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected