MCPcopy Create free account
hub / github.com/adobe/react-spectrum / getCDP

Function getCDP

vitest.browser.config.ts:172–179  ·  view source on GitHub ↗
(page: any, context: any)

Source from the content-addressed store, hash-verified

170// Chromium only — used by the IME/composition commands below.
171const cdpSessions = new WeakMap<object, Promise<any>>();
172function getCDP(page: any, context: any): Promise<any> {
173 let session = cdpSessions.get(page);
174 if (!session) {
175 session = context.newCDPSession(page);
176 cdpSessions.set(page, session!);
177 }
178 return session!;
179}
180
181declare module 'vitest/browser' {
182 interface BrowserCommands {

Callers 1

Calls 1

setMethod · 0.45

Tested by

no test coverage detected