MCPcopy Index your code
hub / github.com/ChromeDevTools/chrome-devtools-mcp / loadScenario

Function loadScenario

scripts/eval_gemini.ts:27–35  ·  view source on GitHub ↗
(scenarioPath: string)

Source from the content-addressed store, hash-verified

25export {Result};
26
27async function loadScenario(scenarioPath: string): Promise<TestScenario> {
28 const module = await import(pathToFileURL(scenarioPath).href);
29 if (!module.scenario) {
30 throw new Error(
31 `Scenario file ${scenarioPath} does not export a 'scenario' object.`,
32 );
33 }
34 return module.scenario;
35}
36
37async function runSingleScenario(
38 scenarioPath: string,

Callers 1

runSingleScenarioFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…