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

Function waitForInitialization

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

Source from the content-addressed store, hash-verified

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

Callers 2

getContextFunction · 0.85

Calls 1

resolveMethod · 0.80

Tested by

no test coverage detected