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

Function waitForInitialization

tests/ToolHandler.test.ts:352–355  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

350 context.ensureBrowser.resolves(browser);
351 context.validatePath.resolves('/tmp/file');
352 const waitForInitialization = async () => {
353 started.resolve();
354 await initialization.promise;
355 };
356 const getContext = async () => {
357 if (stage === 'context') {
358 await waitForInitialization();

Callers 2

getContextFunction · 0.85

Calls 1

resolveMethod · 0.80

Tested by

no test coverage detected