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

Function getMockResponse

tests/utils.ts:216–230  ·  view source on GitHub ↗
(
  options: {
    status?: number;
    headers?: Record<string, string>;
  } = {},
)

Source from the content-addressed store, hash-verified

214}
215
216export function getMockResponse(
217 options: {
218 status?: number;
219 headers?: Record<string, string>;
220 } = {},
221): HTTPResponse {
222 return {
223 status() {
224 return options.status ?? 200;
225 },
226 headers(): Record<string, string> {
227 return options.headers ?? {};
228 },
229 } as unknown as HTTPResponse;
230}
231
232export function html(
233 strings: TemplateStringsArray,

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…