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

Function getCDP

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

Source from the content-addressed store, hash-verified

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

Callers 1

Calls 1

setMethod · 0.45

Tested by

no test coverage detected